diff options
author | Johan Hovold <johan@kernel.org> | 2021-01-04 15:53:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-04 16:51:35 +0100 |
commit | 020a1f453449294926ca548d8d5ca970926e8dfd (patch) | |
tree | 9d117299d9e3944d7efbc83526a4c21581b93833 /mm | |
parent | c318840fb2a42ce25febc95c4c19357acf1ae5ca (diff) | |
download | linux-020a1f453449294926ca548d8d5ca970926e8dfd.tar.bz2 |
USB: usblp: fix DMA to stack
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 'mm')
0 files changed, 0 insertions, 0 deletions