aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorTomi Valkeinen <[email protected]>2020-03-25 13:20:00 +0100
committerMauro Carvalho Chehab <[email protected]>2020-04-14 12:18:37 +0200
commitbfcba38d95a0aed146a958a84a2177af1459eddc (patch)
treec86b3062f23215c90cf19061b5cf3dc367740d5b /tools/perf/scripts/python/netdev-times.py
parent34b7db6fff8d977398234cd6393c620787989e68 (diff)
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 <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Cc: [email protected] # v4.14+ Reviewed-by: Benoit Parrot <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions