[media] uvcvideo: Handle uvc_init_video() failure in uvc_video_enable()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 25 Oct 2011 12:03:42 +0000 (09:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Dec 2011 13:13:29 +0000 (11:13 -0200)
commit24c3aae0c740ae9837284266ea82234415721dc1
treea6ba9f1ff29057195ef6ea9bb2ae7ea6eb99e524
parent6998b6fb4b1c8f320adeee938d399c4d8dcc90e2
[media] uvcvideo: Handle uvc_init_video() failure in uvc_video_enable()

Turn streaming off (by selecting alternate setting 0) and disable the
video buffers queue in the uvc_video_enable() error path.

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