]> Git Repo - linux.git/commit
ALSA: usb-audio: Fix possible NULL dereference at create_yamaha_midi_quirk()
authorTakashi Iwai <[email protected]>
Mon, 26 Aug 2019 11:55:21 +0000 (13:55 +0200)
committerTakashi Iwai <[email protected]>
Mon, 26 Aug 2019 11:55:21 +0000 (13:55 +0200)
commit60849562a5db4a1eee2160167e4dce4590d3eafe
tree1d91d41ddca7aca332fd6de303fe32757655651a
parente0ccdef92653f8867e2d1667facfd3c23699f540
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: 57f8770620e9 ("ALSA: usb-audio: More validations of descriptor units")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
sound/usb/quirks.c
This page took 0.055227 seconds and 4 git commands to generate.