Tomi Valkeinen
bfcba38d95
media: ov5640: fix use of destroyed mutex
...
v4l2_ctrl_handler_free() uses hdl->lock, which in ov5640 driver is set
to sensor's own sensor->lock. In ov5640_remove(), the driver destroys the
sensor->lock first, and then calls v4l2_ctrl_handler_free(), resulting
in the use of the destroyed mutex.
Fix this by calling moving the mutex_destroy() to the end of the cleanup
sequence, as there's no need to destroy the mutex as early as possible.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@vger.kernel.org # v4.14+
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-04-14 12:18:37 +02:00
..
2019-12-13 09:14:27 +01:00
2019-06-11 12:09:28 -04:00
2020-04-14 10:29:05 +02:00
2020-04-14 10:29:05 +02:00
2020-03-12 17:22:13 +01:00
2020-04-14 10:29:05 +02:00
2019-10-24 18:44:49 -03:00
2019-08-13 11:45:04 -03:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2020-02-24 16:14:49 +01:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-08-13 11:54:04 -03:00
2019-08-26 10:44:16 -03:00
2019-12-16 10:23:58 +01:00
2019-10-24 18:33:18 -03:00
2019-07-09 09:47:22 -07:00
2018-07-04 07:13:34 -04:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-11-05 09:01:17 -03:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-01-16 13:34:01 -05:00
2018-10-08 11:51:31 -04:00
2019-11-05 09:12:49 -03:00
2020-03-12 17:21:44 +01:00
2020-03-12 17:19:39 +01:00
2018-12-05 06:34:26 -05:00
2019-08-13 11:54:04 -03:00
2019-10-24 18:48:03 -03:00
2018-12-05 06:34:26 -05:00
2018-12-05 06:34:26 -05:00
2019-08-14 05:05:10 -03:00
2020-04-14 10:29:06 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2019-10-24 18:41:31 -03:00
2019-05-30 11:26:37 -07:00
2020-02-27 17:19:12 -03:00
2020-04-14 10:36:50 +02:00
2019-11-10 17:47:14 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2018-09-17 13:16:19 -04:00
2019-05-30 11:26:37 -07:00
2019-10-01 12:25:44 -03:00
2019-05-30 11:26:41 -07:00
2019-08-13 11:54:04 -03:00
2019-07-09 09:47:22 -07:00
2019-06-19 17:09:55 +02:00
2019-03-01 09:29:58 -05:00
2020-01-04 08:09:59 +01:00
2020-01-23 15:48:05 +01:00
2019-05-30 11:26:32 -07:00
2019-08-13 11:54:04 -03:00
2019-08-13 11:54:04 -03:00
2019-10-01 17:39:16 -03:00
2019-07-25 06:44:39 -04:00
2019-06-21 17:52:50 -04:00
2020-04-14 12:18:37 +02:00
2019-08-15 08:08:07 -03:00
2019-08-13 11:54:04 -03:00
2018-08-31 09:23:53 -04:00
2020-02-27 17:16:36 -03:00
2020-03-12 17:20:19 +01:00
2019-11-08 07:28:22 +01:00
2018-10-04 16:06:15 -04:00
2019-05-30 11:26:41 -07:00
2019-07-23 08:55:36 -04:00
2019-08-13 11:54:04 -03:00
2019-08-15 08:05:40 -03:00
2019-06-21 17:54:25 -04:00
2019-01-16 13:30:44 -05:00
2019-08-26 14:05:09 -03:00
2019-06-21 17:52:50 -04:00
2018-10-03 11:58:24 -04:00
2019-05-30 11:26:32 -07:00
2019-08-13 11:54:04 -03:00
2019-08-13 11:54:04 -03:00
2019-05-30 11:26:32 -07:00
2019-11-10 17:47:14 +01:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:46 +02:00
2019-05-30 11:26:37 -07:00
2019-03-01 09:29:58 -05:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-10-24 18:48:35 -03:00
2019-08-13 11:54:04 -03:00
2019-11-10 17:47:14 +01:00
2019-08-13 11:46:32 -03:00
2019-06-12 11:42:27 -04:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:46 +02:00
2019-05-24 17:36:45 +02:00
2019-08-13 11:54:04 -03:00
2019-05-30 11:26:37 -07:00
2019-03-01 09:29:58 -05:00
2019-06-19 17:09:52 +02:00
2019-06-19 17:09:52 +02:00
2019-11-10 17:47:14 +01:00
2020-03-12 16:42:40 +01:00
2019-05-30 11:26:37 -07:00
2019-08-13 11:54:04 -03:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-06-24 11:17:03 -04:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2020-03-24 17:11:27 +01:00
2019-05-30 11:26:37 -07:00
2019-11-05 08:48:55 -03:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00