diff options
author | Pei Xiao <xiaopei01@kylinos.cn> | 2025-06-24 12:00:47 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2025-06-25 09:28:16 +0300 |
commit | 5e9571750c4e53d16727a04159455c693d7b31cb (patch) | |
tree | f2e7626864b08ee8901091125941da6eb7f83767 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b272f42547d85356b035e46273ddaf2aa4e161b8 (diff) | |
download | linux-5e9571750c4e53d16727a04159455c693d7b31cb.tar.xz |
ALSA: usb: qcom: fix NULL pointer dereference in qmi_stop_session
The find_substream() call may return NULL, but the error path
dereferenced 'subs' unconditionally via dev_err(&subs->dev->dev, ...),
causing a NULL pointer dereference when subs is NULL.
Fix by switching to &uadev[idx].udev->dev which is always valid
in this context.
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://patch.msgid.link/86ac2939273ac853535049e60391c09d7688714e.1750755508.git.xiaopei01@kylinos.cn
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