summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-12-02 15:57:54 +0300
committerTakashi Iwai <tiwai@suse.de>2024-12-02 18:30:00 +0300
commitf7d306b47a24367302bd4fe846854e07752ffcd9 (patch)
treebcd921119c9a64194a73b4861b47d6f293ee00c3 /tools/perf/scripts/python/exported-sql-viewer.py
parente2974a220594c06f536e65dfd7b2447e0e83a1cb (diff)
downloadlinux-f7d306b47a24367302bd4fe846854e07752ffcd9.tar.xz
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: stable@kernel.org Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/60e3aa09-039d-46d2-934c-6f123026c2eb@stanley.mountain Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions