]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dice: fix a bounds check in snd_dice_detect_tcelectronic_formats()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 May 2018 09:16:07 +0000 (12:16 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 May 2018 11:38:34 +0000 (13:38 +0200)
commit55810f80eedc86c014f564fd215df1d18b9b9bb4
treed97900b103f91449c6f68b6de7321364235ffee2
parent1492148984deef69faa5be4fe06014c55cc37d18
ALSA: dice: fix a bounds check in snd_dice_detect_tcelectronic_formats()

The "entry" pointer is always non-NULL so this test for out of bounds
won't work.

Fixes: f73aceb570db ("ALSA: dice: add parameters of stream formats for models produced by TC Electronic")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-tcelectronic.c