linux/drivers/media/usb
Stefan Brüns fb00319317 cxusb: Use a dma capable buffer also for reading
commit 3f190e3aec upstream.

Commit 17ce039b4e ("[media] cxusb: don't do DMA on stack")
added a kmalloc'ed bounce buffer for writes, but missed to do the same
for reads. As the read only happens after the write is finished, we can
reuse the same buffer.

As dvb_usb_generic_rw handles a read length of 0 by itself, avoid calling
it using the dvb_usb_generic_read wrapper function.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Brad Spengler <spender@grsecurity.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-04-21 09:31:24 +02:00
..
airspy [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
as102 media: usb: as102: as102_usb_drv: don't print error when allocating urb fails 2016-08-30 19:13:53 +02:00
au0828 [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
b2c2 [media] flexcop-usb: don't use stack for DMA 2016-10-14 12:52:29 -03:00
cpia2 [media] cpia2_usb: don't use stack for DMA 2016-10-14 12:52:27 -03:00
cx231xx [media] cx231xx: attach si2165 driver via i2c_client 2016-09-22 12:55:08 -03:00
dvb-usb cxusb: Use a dma capable buffer also for reading 2017-04-21 09:31:24 +02:00
dvb-usb-v2 dvb-usb-v2: avoid use-after-free 2017-04-21 09:31:23 +02:00
em28xx [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
go7007 [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
gspca media: usb: gspca: konica: don't print error when allocating urb fails 2016-08-30 19:13:54 +02:00
hackrf [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
hdpvr Merge branch 'akpm' (patches from Andrew) 2016-10-11 17:34:10 -07:00
msi2500 [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
pvrusb2 [media] rc: Hauppauge z8f0811 can decode RC6 2016-09-22 11:44:52 -03:00
pwc [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
s2255 [media] s2255drv: don't use stack for DMA 2016-10-14 12:52:28 -03:00
siano siano: make it work again with CONFIG_VMAP_STACK 2017-02-23 17:44:35 +01:00
stk1160 [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
stkwebcam [media] stk-webcam: don't use stack for DMA 2016-10-14 12:52:29 -03:00
tm6000 [media] usb: constify snd_pcm_ops structures 2016-09-19 16:19:10 -03:00
ttusb-budget [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
ttusb-dec [media] ttusb_dec: avoid the risk of go past buffer 2016-09-22 14:14:22 -03:00
usbtv [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
usbvision media: usb: usbvision: usbvision-core: don't print error when allocating urb fails 2016-08-30 19:13:55 +02:00
uvc uvcvideo: uvc_scan_fallback() for webcams with broken chain 2017-03-22 12:43:38 +01:00
zr364xx media: usb: zr364xx: zr364xx: don't print error when allocating urb fails 2016-08-30 19:13:55 +02:00
Kconfig [media] tlg2300: move to staging in preparation for removal 2014-12-16 23:21:43 -02:00
Makefile [media] tlg2300: move to staging in preparation for removal 2014-12-16 23:21:43 -02:00