summaryrefslogtreecommitdiff
path: root/sound/soc/soc-component.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-09-30 13:01:29 +0300
committerTakashi Iwai <tiwai@suse.de>2022-09-30 13:02:42 +0300
commit568be8aaf8a535f79c4db76cabe17b035aa2584d (patch)
tree389abcf32ef6d2d76c432c25dc0987ae679551b1 /sound/soc/soc-component.c
parent35a1744423743247026668e2323d1b932583fc2a (diff)
downloadlinux-568be8aaf8a535f79c4db76cabe17b035aa2584d.tar.xz
ALSA: usb-audio: Fix NULL dererence at error path
At an error path to release URB buffers and contexts, the driver might hit a NULL dererence for u->urb pointer, when u->buffer_size has been already set but the actual URB allocation failed. Fix it by adding the NULL check of urb. Also, make sure that buffer_size is cleared after the error path or the close. Cc: <stable@vger.kernel.org> Reported-by: Sabri N. Ferreiro <snferreiro1@gmail.com> Link: https://lore.kernel.org/r/CAKG+3NRjTey+fFfUEGwuxL-pi_=T4cUskYG9OzpzHytF+tzYng@mail.gmail.com Link: https://lore.kernel.org/r/20220930100129.19445-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/soc-component.c')
0 files changed, 0 insertions, 0 deletions