]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: asihpi - off by one in asihpi_hpi_ioctl()
authorDan Carpenter <error27@gmail.com>
Wed, 27 Jul 2011 12:02:26 +0000 (15:02 +0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Jul 2011 14:06:16 +0000 (16:06 +0200)
commit073feca85fcd0ad1aec4e47f0c58dd6a67c8777c
treeb2c379feee2bfc5f8a632c9cbd872e5e26a04ba3
parent3d525f16f852f9939a1f6131fd47456178c846d7
ALSA: asihpi - off by one in asihpi_hpi_ioctl()

"adapter" is used as an array index in the adapters[] array so
the off by one would make us read past the end.

7ff4c2736e1 "ALSA: asihpi - Remove spurious adapter index check"
reverted Dan Rosenberg's check that would have prevented the
overflow here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpioctl.c