linux/drivers/media/usb/dvb-usb-v2
Devin Heitmueller d90b336f3f [media] mxl111sf: Fix driver to use heap allocate buffers for USB messages
The recent changes in 4.9 to mandate USB buffers be heap allocated
broke this driver, which was allocating the buffers on the stack.
This resulted in the device failing at initialization.

Introduce dedicated send/receive buffers as part of the state
structure, and add a mutex to protect access to them.

Note: we also had to tweak the API to mxl111sf_ctrl_msg to pass
the pointer to the state struct rather than the device, since
we need it inside the function to access the buffers and the
mutex.  This patch adjusts the callers to match the API change.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Reported-by: Doug Lung <dlung0@gmail.com>
Cc: Michael Ira Krufky <mkrufky@linuxtv.org>
Cc: <stable@vger.kernel.org>      # for v4.5 and up
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-06 07:28:09 -03:00
..
af9015.c [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
af9015.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
af9035.c [media] af9035: correct demod i2c addresses 2017-01-31 10:51:09 -02:00
af9035.h [media] af9035: register it9133 tuner using platform binding 2017-01-31 10:49:42 -02:00
anysee.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
anysee.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
au6610.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
au6610.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
az6007.c [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
ce6230.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ce6230.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dvb_usb_common.h [media] media: change email address 2016-01-25 12:01:08 -02:00
dvb_usb_core.c [media] dvb-usb-v2: avoid use-after-free 2017-02-08 11:45:09 -02:00
dvb_usb_urb.c [media] media: change email address 2016-01-25 12:01:08 -02:00
dvb_usb.h [media] media: change email address 2016-01-25 12:01:08 -02:00
dvbsky.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ec168.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ec168.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
gl861.c [media] gl861: use Kernel dev_foo() logging 2012-09-23 20:50:13 -03:00
gl861.h
Kconfig [media] zd1301: ZyDAS ZD1301 DVB USB interface driver 2017-02-03 06:47:35 -02:00
lmedm04.c [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
lmedm04.h
Makefile [media] zd1301: ZyDAS ZD1301 DVB USB interface driver 2017-02-03 06:47:35 -02:00
mxl111sf-demod.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-demod.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-gpio.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-gpio.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-i2c.c [media] mxl111sf: Fix driver to use heap allocate buffers for USB messages 2017-06-06 07:28:09 -03:00
mxl111sf-i2c.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-phy.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-phy.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-reg.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-tuner.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf-tuner.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mxl111sf.c [media] mxl111sf: Fix driver to use heap allocate buffers for USB messages 2017-06-06 07:28:09 -03:00
mxl111sf.h [media] mxl111sf: Fix driver to use heap allocate buffers for USB messages 2017-06-06 07:28:09 -03:00
rtl28xxu.c [media] rc: raw IR drivers cannot handle cec, unknown or other 2017-01-30 12:40:50 -02:00
rtl28xxu.h [media] rtl28xxu: fix control message flaws 2015-10-22 15:48:27 -02:00
usb_urb.c [media] media: change email address 2016-01-25 12:01:08 -02:00
zd1301.c [media] zd1301: fix building interface driver without demodulator 2017-02-08 11:59:39 -02:00