]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dice: fix array limits in dice_proc_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 29 Nov 2013 08:14:09 +0000 (11:14 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Nov 2013 09:23:04 +0000 (10:23 +0100)
commit35b027c87966015434f126424c65e71ba7bb5edd
treed9302124d8aed364304691841a93ec156e563295
parent0e6afcf5dc5c2f0be9ed04728a959890afe8541c
ALSA: dice: fix array limits in dice_proc_read()

The array limits are supposed to be in units of u32 instead of in bytes.
The current code has a potential array overflow.

Fixes: 98903de0abc1 ('ALSA: dice: add a proc file to show device information')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice.c