[PATCH] ALSA: usb-audio: Fix possible NULL pointer dereference in snd_usb_pcm_has_fixed_rate()

Takashi Iwai tiwai at suse.de
Fri Jan 13 09:56:10 CET 2023


On Fri, 13 Jan 2023 09:53:11 +0100,
Jaroslav Kysela wrote:
> 
> The subs function argument may be NULL, so do not use it before the NULL check.
> 
> Fixes: 291e9da91403 ("ALSA: usb-audio: Always initialize fixed_rate in snd_usb_find_implicit_fb_sync_format()")
> Reported-by: coverity-bot <keescook at chromium.org>
> Link: https://lore.kernel.org/alsa-devel/202301121424.4A79A485@keescook/
> Signed-off-by: Jaroslav Kysela <perex at perex.cz>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list