]> git.karo-electronics.de Git - linux-beck.git/commit
[media] media: vb2: Fix potential deadlock in vb2_prepare_buffer
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 9 Aug 2013 11:11:25 +0000 (08:11 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 22 Aug 2013 15:01:00 +0000 (12:01 -0300)
commita517cca6b24fc54ac209e44118ec8962051662e3
tree166ea9f4abb6512fbf4585d0760239a9d666b664
parent1ac7fdeeb52b05e108713d1ccc63e714c2489717
[media] media: vb2: Fix potential deadlock in vb2_prepare_buffer

Commit b037c0fde22b1d3cd0b3c3717d28e54619fc1592 ("media: vb2: fix
potential deadlock in mmap vs. get_userptr handling") fixes an AB-BA
deadlock related to the mmap_sem and driver locks. The same deadlock can
occur in vb2_prepare_buffer(), fix it the same way.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c