aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/microchip-spi.c
diff options
context:
space:
mode:
authorPei Xiao <[email protected]>2025-06-24 09:00:47 +0000
committerTakashi Iwai <[email protected]>2025-06-25 06:28:16 +0000
commit5e9571750c4e53d16727a04159455c693d7b31cb (patch)
treef2e7626864b08ee8901091125941da6eb7f83767 /drivers/fpga/microchip-spi.c
parentALSA: qc_audio_offload: Fix missing error code in prepare_qmi_response() (diff)
downloadkernel-5e9571750c4e53d16727a04159455c693d7b31cb.tar.gz
kernel-5e9571750c4e53d16727a04159455c693d7b31cb.zip
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 <[email protected]> Link: https://patch.msgid.link/86ac2939273ac853535049e60391c09d7688714e.1750755508.git.xiaopei01@kylinos.cn Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions