linux_dsm_epyc7002/drivers/media/usb/uvc
Oliver Neukum a82a45f653 [media] uvcvideo: Fix race of open and suspend in error case
Ming Lei reported:
IMO, there is a minor fault in the error handling path of
uvc_status_start() inside uvc_v4l2_open(), and the 'users' count should
have been decreased before usb_autopm_put_interface(). In theory, a [URB
resubmission] warning can be triggered when the device is opened just
between usb_autopm_put_interface() and atomic_dec(&stream->dev->users).
The fix is trivial.

Reported-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-02-05 14:32:21 -02:00
..
Kconfig [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
Makefile [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
uvc_ctrl.c [media] uvcvideo: Replace memcpy with struct assignment 2013-02-05 14:31:36 -02:00
uvc_debugfs.c [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
uvc_driver.c [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00
uvc_entity.c [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00
uvc_isight.c [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
uvc_queue.c [media] v4l: uvc: add support for DMABUF importing 2012-11-25 17:19:31 -02:00
uvc_status.c [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
uvc_v4l2.c [media] uvcvideo: Fix race of open and suspend in error case 2013-02-05 14:32:21 -02:00
uvc_video.c [media] uvcvideo: Don't fail when an unsupported format is requested 2012-11-28 10:27:49 -02:00
uvcvideo.h [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00