original_kernel/drivers/media/usb
Hans Verkuil 6bc5a4a192 media: hdpvr: fix locking and a missing msleep
This driver has three locking issues:

- The wait_event_interruptible() condition calls hdpvr_get_next_buffer(dev)
  which uses a mutex, which is not allowed. Rewrite with list_empty_careful()
  that doesn't need locking.

- In hdpvr_read() the call to hdpvr_stop_streaming() didn't lock io_mutex,
  but it should have since stop_streaming expects that.

- In hdpvr_device_release() io_mutex was locked when calling flush_work(),
  but there it shouldn't take that mutex since the work done by flush_work()
  also wants to lock that mutex.

There are also two other changes (suggested by Keith):

- msecs_to_jiffies(4000); (a NOP) should have been msleep(4000).
- Change v4l2_dbg to v4l2_info to always log if streaming had to be restarted.

Reported-by: Keith Pyle <kpyle@austin.rr.com>
Suggested-by: Keith Pyle <kpyle@austin.rr.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-06-24 15:02:01 -04:00
..
airspy
as102
au0828
b2c2
cpia2
cx231xx media: cx231xx-cards: Add Hauppauge 955Q variant 2019-06-13 14:31:45 -04:00
dvb-usb
dvb-usb-v2
em28xx
go7007
gspca
hackrf
hdpvr media: hdpvr: fix locking and a missing msleep 2019-06-24 15:02:01 -04:00
msi2500
pulse8-cec
pvrusb2 media: pvrusb2: Add Hauppauge HVR1955/1975 devices 2019-06-13 14:31:25 -04:00
pwc
rainshadow-cec
s2255
siano
stk1160
stkwebcam
tm6000
ttusb-budget
ttusb-dec
usbtv
usbvision
uvc media: uvcvideo: Fix access to uninitialized fields on probe error 2019-06-11 12:22:21 -04:00
zr364xx
Kconfig
Makefile