[media] uvcvideo: Fix uvc_query_v4l2_ctrl() and uvc_xu_ctrl_query() locking
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 2 Oct 2010 12:04:53 +0000 (09:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:18:26 +0000 (01:18 -0200)
commit27a61c13ec5d9c1da5286fd1697ab5930b916b4f
treefc2853c64f1558c94d1665c9c1537d2823e43c43
parentb5977a58c330ac6afdc64bab9b1dd674f11c0635
[media] uvcvideo: Fix uvc_query_v4l2_ctrl() and uvc_xu_ctrl_query() locking

Take the ctrl_mutex mutex before touching control information in those
functions.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_ctrl.c
drivers/media/video/uvc/uvcvideo.h