diff options
author | Jonathan McDowell <noodles@earth.li> | 2017-02-15 18:29:15 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-03-06 09:36:47 -0300 |
commit | 606142af57dad981b78707234cfbd15f9f7b7125 (patch) | |
tree | d1dcb3dc57901da4c1c216c409ad603ad94f7cb3 /drivers/usb/host/xhci-trace.c | |
parent | 5df62771c556e4ec9d7ecea1f070ff6da4bce151 (diff) |
[media] dw2102: don't do DMA on stack
On Kernel 4.9, WARNINGs about doing DMA on stack are hit at
the dw2102 driver: one in su3000_power_ctrl() and the other in tt_s2_4600_frontend_attach().
Both were due to the use of buffers on the stack as parameters to
dvb_usb_generic_rw() and the resulting attempt to do DMA with them.
The device was non-functional as a result.
So, switch this driver over to use a buffer within the device state
structure, as has been done with other DVB-USB drivers.
Tested with TechnoTrend TT-connect S2-4600.
[mchehab@osg.samsung.com: fixed a warning at su3000_i2c_transfer() that
state var were dereferenced before check 'd']
Signed-off-by: Jonathan McDowell <noodles@earth.li>
Cc: <stable@vger.kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/usb/host/xhci-trace.c')
0 files changed, 0 insertions, 0 deletions