diff options
author | Dan Carpenter <[email protected]> | 2024-12-02 15:57:54 +0300 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2024-12-02 16:30:00 +0100 |
commit | f7d306b47a24367302bd4fe846854e07752ffcd9 (patch) | |
tree | bcd921119c9a64194a73b4861b47d6f293ee00c3 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | e2974a220594c06f536e65dfd7b2447e0e83a1cb (diff) |
ALSA: usb-audio: Fix a DMA to stack memory bug
The usb_get_descriptor() function does DMA so we're not allowed
to use a stack buffer for that. Doing DMA to the stack is not portable
all architectures. Move the "new_device_descriptor" from being stored
on the stack and allocate it with kmalloc() instead.
Fixes: b909df18ce2a ("ALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devices")
Cc: [email protected]
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions