linux_dsm_epyc7002/drivers/media
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
..
cec media: cec-adap: fix regression in ping sanity check 2019-05-29 10:38:11 -04:00
common media: media/pci: set device_caps in struct video_device 2019-06-24 14:57:12 -04:00
dvb-core Linux 5.2-rc5 2019-06-21 16:09:25 -04:00
dvb-frontends media: stv090x: fix double free on state object 2019-06-21 15:33:07 -04:00
firewire treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
i2c media: st-mipid02: add support of JPEG 2019-06-24 13:04:58 -04:00
mc Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mmc treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pci media: pci: cx88: Change the type of 'missed' to u64 2019-06-24 14:59:04 -04:00
platform media: atmel: atmel-isc: fix i386 build error 2019-06-24 15:00:40 -04:00
radio Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
rc media: rc: IR signal for Panasonic air conditioner too long 2019-06-21 15:33:48 -04:00
spi Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
tuners media: si2157: add detection of si2177 tuner 2019-06-13 14:26:59 -04:00
usb media: hdpvr: fix locking and a missing msleep 2019-06-24 15:02:01 -04:00
v4l2-core media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom() 2019-06-24 15:01:07 -04:00
Kconfig media: move drivers/media/media-* to drivers/media/mc/mc-* 2019-05-28 12:15:46 -04:00
Makefile media: move drivers/media/media-* to drivers/media/mc/mc-* 2019-05-28 12:15:46 -04:00