linux/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 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
as102 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 118 2019-05-24 17:39:02 +02:00
au0828 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
b2c2 treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
cpia2 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
cx231xx media: cx231xx-cards: Add Hauppauge 955Q variant 2019-06-13 14:31:45 -04:00
dvb-usb Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
dvb-usb-v2 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
em28xx media: media/usb: set device_caps in struct video_device 2019-06-05 08:24:49 -04:00
go7007 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
gspca Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
hackrf Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
hdpvr media: hdpvr: fix locking and a missing msleep 2019-06-24 15:02:01 -04:00
msi2500 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
pulse8-cec treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 55 2019-05-24 17:36:42 +02:00
pvrusb2 media: pvrusb2: Add Hauppauge HVR1955/1975 devices 2019-06-13 14:31:25 -04:00
pwc Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
rainshadow-cec treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 55 2019-05-24 17:36:42 +02:00
s2255 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
siano USB fixes for 5.2-rc3 2019-05-31 08:16:31 -07:00
stk1160 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
stkwebcam Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
tm6000 Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
ttusb-budget treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
ttusb-dec treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
usbtv media: media/usb: set device_caps in struct video_device 2019-06-05 08:24:49 -04:00
usbvision Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
uvc media: uvcvideo: Fix access to uninitialized fields on probe error 2019-06-11 12:22:21 -04:00
zr364xx Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00