[media] videobuf2-core: take mmap_sem before calling __qbuf_userptr
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 25 Aug 2014 11:57:59 +0000 (08:57 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:12:49 +0000 (20:12 -0300)
commit12561ad622de254d69ec1baaf6734afc602a2c30
tree32c93ebb4cf508eaf4fe1b19a26379b683fdcd34
parent825fd08dbbd830b3f42e0f014f4c9f6eba5c434c
[media] videobuf2-core: take mmap_sem before calling __qbuf_userptr

(Changes since v2: dropped local variable as suggested by Laurent)

Commit f035eb4e976ef5a059e30bc91cfd310ff030a7d3 (videobuf2: fix lockdep warning)
unfortunately removed the mmap_sem lock that is needed around the call to
__qbuf_userptr. Amazingly nobody noticed this (especially me as the author)
until Jan Kara pointed this out to me.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Jan Kara <jack@suse.cz>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c
This page took 0.024712 seconds and 5 git commands to generate.