diff options
author | Johan Hovold <johan@kernel.org> | 2021-01-04 15:53:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-12 20:09:12 +0100 |
commit | 863f3efde4c67469ea482c66ce4bd974fe12989e (patch) | |
tree | ba6208e7c26b9dfc3ccbdc85c18884e64c2f2fc0 /sound | |
parent | 2d701f6fc8d638d00179eb903b00548b42949536 (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 'sound')
0 files changed, 0 insertions, 0 deletions