Skip to content
Commit 5e957175 authored by Pei Xiao's avatar Pei Xiao Committed by Takashi Iwai
Browse files

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: default avatarPei Xiao <xiaopei01@kylinos.cn>
Link: https://patch.msgid.link/86ac2939273ac853535049e60391c09d7688714e.1750755508.git.xiaopei01@kylinos.cn


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b272f425
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment