ALSA: asihpi: fix an information leak in asihpi_hpi_ioctl()
authorEliot Blennerhassett <eliot@blennerhassett.gen.nz>
Wed, 31 Dec 2014 10:48:32 +0000 (23:48 +1300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 31 Dec 2014 13:12:43 +0000 (14:12 +0100)
commit0d02e1292715d00674a49626146e3a854b504cb1
treea0ac354d0799db7e834d0af19e45a496acffb0ac
parent240491e143414973a0204e6c7cd4cfd19cb3e027
ALSA: asihpi: fix an information leak in asihpi_hpi_ioctl()

Add missing limits to keep copied data within allocated buffer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eliot Blennerhassett <eliot@blennerhassett.gen.nz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpi6000.c
sound/pci/asihpi/hpioctl.c