diff options
author | Laurent Pinchart | 2015-02-16 18:38:28 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2015-04-02 22:29:28 +0200 |
commit | 9e68c53910721ffc55c05ee9bbc08129c796b470 (patch) | |
tree | b46ceedf3b73da8a2c9405ab6afb22e4bef4ed1a /drivers/media/usb/uvc/uvc_driver.c | |
parent | [media] smiapp: Make pixel_order_str static (diff) | |
download | kernel-qcow2-linux-9e68c53910721ffc55c05ee9bbc08129c796b470.tar.gz kernel-qcow2-linux-9e68c53910721ffc55c05ee9bbc08129c796b470.tar.xz kernel-qcow2-linux-9e68c53910721ffc55c05ee9bbc08129c796b470.zip |
[media] uvcvideo: Don't call vb2 mmap and get_unmapped_area with queue lock held
videobuf2 has long been subject to AB-BA style deadlocks due to the
queue lock and mmap_sem being taken in different orders for the mmap and
get_unmapped_area operations. The problem has been fixed by making those
two operations callable without taking the queue lock, using an
mmap_lock internal to videobuf2.
The uvcvideo driver still calls the mmap and get_unmapped_area
operations with the queue lock held, resulting in a potential deadlock.
As the operations can now be called without locking the queue, fix it.
Reported-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/uvc/uvc_driver.c')
0 files changed, 0 insertions, 0 deletions