From: Hans Verkuil Date: Mon, 25 Aug 2014 11:57:59 +0000 (-0300) Subject: [media] videobuf2-core: take mmap_sem before calling __qbuf_userptr X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~140 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12561ad622de254d69ec1baaf6734afc602a2c30;p=pandora-kernel.git [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 Reported-by: Jan Kara Acked-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed