]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix possible NULL dereference at create_yamaha_midi_quirk()
authorTakashi Iwai <tiwai@suse.de>
Mon, 26 Aug 2019 11:55:21 +0000 (13:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 Aug 2019 11:55:21 +0000 (13:55 +0200)
commitdab9c822ef3c94b86d680bb448f5a588d49635cb
tree1d91d41ddca7aca332fd6de303fe32757655651a
parent3366aced2900dc5191c05ab36ccbabb8f9c79b81
ALSA: usb-audio: Fix possible NULL dereference at create_yamaha_midi_quirk()

The previous addition of descriptor validation may lead to a NULL
dereference at create_yamaha_midi_quirk() when either injd or outjd is
NULL.  Add proper non-NULL checks.

Fixes: f41892094452 ("ALSA: usb-audio: More validations of descriptor units")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks.c