[media] uvcvideo: Lock stream mutex when accessing format-related information
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 21 Nov 2010 16:36:34 +0000 (13:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Dec 2010 22:10:24 +0000 (20:10 -0200)
commit6947756dfcecc493062a46e77f6bf51dddb5be75
tree9ef949c2b95d43ce0389ea6d54b5b469322aaf0b
parent4aa275975beee41fd542a0f6df8cd0fee06089bf
[media] uvcvideo: Lock stream mutex when accessing format-related information

The stream mutex protects access to the struct uvc_streaming ctrl,
cur_format and cur_frame fields as well as to the hardware probe
control. Lock it appropriately.

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