ALSA: asihpi: a couple array out of bounds issues
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Sep 2013 07:44:44 +0000 (10:44 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 13 Sep 2013 12:31:51 +0000 (14:31 +0200)
commit0c21fccd97f0ff58e6e9699370a09f6ec8946061
tree75f54f5361d4869e817a6cca38a62c9e73256d0b
parent3d0049e8529adaa36c38a7b400792f6c37b66c92
ALSA: asihpi: a couple array out of bounds issues

These ->put() functions are called from snd_ctl_elem_write() with user
supplied data.  snd_asihpi_tuner_band_put() is missing a limit check and
the check in snd_asihpi_clksrc_put() can underflow.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/asihpi.c