]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: qc_audio_offload: Fix missing error code in prepare_qmi_response()
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Mon, 23 Jun 2025 14:26:27 +0000 (07:26 -0700)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 Jun 2025 08:11:02 +0000 (10:11 +0200)
commitb272f42547d85356b035e46273ddaf2aa4e161b8
tree8e8e23f3b6108cfc859a2aef246f98f4f7852173
parent41c66461cb2e8d3934a5395f27e572ebe63696b4
ALSA: qc_audio_offload: Fix missing error code in prepare_qmi_response()

When snd_soc_usb_find_priv_data() fails, return failure instead of
success. While we are at it also use direct returns at first few error
paths where there is no additional cleanup needed.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/Z_40qL4JnyjR4j0O@stanley.mountain/
Fixes: 326bbc348298 ("ALSA: usb-audio: qcom: Introduce QC USB SND offloading support")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Link: https://patch.msgid.link/20250623142639.2938056-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/qcom/qc_audio_offload.c