linux/drivers/usb/class
Johan Hovold 95c4faad3f USB: usblp: fix DMA to stack
commit 020a1f4534 upstream.

Stack-allocated buffers cannot be used for DMA (on all architectures).

Replace the HP-channel macro with a helper function that allocates a
dedicated transfer buffer so that it can continue to be used with
arguments from the stack.

Note that the buffer is cleared on allocation as usblp_ctrl_msg()
returns success also on short transfers (the buffer is only used for
debugging).

Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210104145302.2087-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 20:10:22 +01:00
..
cdc-acm.c USB: cdc-acm: blacklist another IR Droid device 2021-01-12 20:10:21 +01:00
cdc-acm.h usb: cdc-acm: fix cooldown mechanism 2020-11-05 11:08:49 +01:00
cdc-wdm.c USB: cdc-wdm: Fix use after free in service_outstanding_interrupt(). 2021-01-12 20:10:21 +01:00
Kconfig usb: fix some references for /proc/bus/usb 2017-04-18 16:54:19 +02:00
Makefile USB: add SPDX identifiers to all remaining Makefiles 2017-11-07 15:53:48 +01:00
usblp.c USB: usblp: fix DMA to stack 2021-01-12 20:10:22 +01:00
usbtmc.c usb: usbtmc: uninitialized symbol 'actual' in usbtmc_ioctl_clear 2019-11-20 18:47:53 +01:00