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)
commit4d6ff250857a8b5f8e33ea62ff16f165085f8655
treed9302124d8aed364304691841a93ec156e563295
parenteb82594b75b0cf54c667189e061934b7c49b5d42
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: c614475b0ea9 ('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