linux_dsm_epyc7002/drivers/media
Ezequiel Garcia 6992effe53 media: gspca: Kill all URBs before releasing any of them
Some subdrivers access the gspca_dev->urb array in the completion handler.
To prevent use-after-free (actually, NULL dereferences) we need to
synchronously kill all the URBs before we release them.

In particular, this is currently the case for drivers such
as sn9c20x and sonixj, which access the gspca_dev->urb[0]
in the context of completion handler for *any* of the URBs.

This commit changes the destroy_urb implementation, so it kills
all URBs first, and then proceed to set the URBs to NULL in the
array and release them.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-28 16:05:03 -04:00
..
cec
common media: videobuf2-core: don't call memop 'finish' when queueing 2018-05-28 15:51:46 -04:00
dvb-core media: dvb_ca_en50221: prevent using slot_info for Spectre attacs 2018-05-16 10:17:22 -04:00
dvb-frontends media: lgdt330x.h: fix compiler warning 2018-05-11 11:40:09 -04:00
firewire
i2c media: ov772x: correct setting of banding filter 2018-05-28 13:58:34 -04:00
mmc media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
pci media: zoran: move to staging in preparation for removal 2018-05-25 15:21:36 -04:00
platform media: rcar-csi2: set default format if a unsupported one is requested 2018-05-28 13:46:48 -04:00
radio Linux 4.17-rc4 2018-05-10 07:19:23 -04:00
rc media: rc: ite-cir: lower timeout and extend allowed timeout range 2018-05-14 07:17:28 -04:00
spi media: cxd2880-spi: Modified how to declare structure 2018-05-05 10:37:12 -04:00
tuners Linux 4.17-rc4 2018-05-10 07:19:23 -04:00
usb media: gspca: Kill all URBs before releasing any of them 2018-05-28 16:05:03 -04:00
v4l2-core media: v4l2-ioctl: delete unused v4l2_disable_ioctl_locking 2018-05-28 15:58:49 -04:00
Kconfig media: cec: Kconfig coding style issue 2018-05-09 16:26:50 -04:00
Makefile
media-device.c media: media-device: fix ioctl function types 2018-05-09 16:33:46 -04:00
media-devnode.c
media-entity.c