summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorKarol Kosik <k.kosik@outlook.com>2024-10-10 09:59:10 +0300
committerTakashi Iwai <tiwai@suse.de>2024-10-10 14:58:44 +0300
commit57c14b983f3b0293f68ef7395148dd80197f5f9d (patch)
tree6e2d7ff0d7878d13043e32802669550f62150b5d /tools/perf/scripts/python/stackcollapse.py
parent9988844c457f6f17fb2e75aa000b6c3b1b673bb9 (diff)
downloadlinux-57c14b983f3b0293f68ef7395148dd80197f5f9d.tar.xz
ALSA: usb-audio: Fix NULL pointer deref in snd_usb_power_domain_set()
Commit adding support for multiple control interfaces expanded struct snd_usb_power_domain with pointer to control interface for proper control message routing but missed one initialization point of this structure, which has left new field with NULL value. Standard mandates that each device has at least one control interface and code responsible for power domain does not check for NULL values when querying for control interface. This caused some USB devices to crash the kernel. Fixes: 6aa8700150f7 ("ALSA: usb-audio: Support multiple control interfaces") Signed-off-by: Karol Kosik <k.kosik@outlook.com> Link: https://patch.msgid.link/AS8P190MB1285B563C6B5394DB274813FEC782@AS8P190MB1285.EURP190.PROD.OUTLOOK.COM Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions