summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-01-04 15:53:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-12 19:47:56 +0100
commitdbe90bed2d5476c1979218003f2c473d673736d7 (patch)
treea6a771a07acc45588255ee3334a6b4e442c92591 /net/unix/af_unix.c
parentb46cbd5344ee42a840d5fec9d9429833c8af2d0a (diff)
USB: usblp: fix DMA to stack
commit 020a1f453449294926ca548d8d5ca970926e8dfd 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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions