]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usx2y: Fix potential NULL dereference
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 Apr 2020 07:55:29 +0000 (09:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Apr 2020 06:00:41 +0000 (08:00 +0200)
commit2f64b0e355d1fa155264035644e2173146afefd7
treed85bab8e433de3e7f18b34ec34e63b326265f67a
parent3dc54be559bff66be0513b8cb437277c7a83c012
ALSA: usx2y: Fix potential NULL dereference

The error handling code in usX2Y_rate_set() may hit a potential NULL
dereference when an error occurs before allocating all us->urb[].
Add a proper NULL check for fixing the corner case.

Reported-by: Lin Yi <teroincn@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200420075529.27203-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/usbusx2yaudio.c