ALSA: oss: underflow in snd_mixer_oss_proc_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 15 Oct 2015 07:01:42 +0000 (10:01 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 15 Oct 2015 08:00:29 +0000 (10:00 +0200)
commit5a1f8c42259a424cfd262185da872764dcc673ad
treefcb3b81c5f0a7b0fc3702c720069384e2326c68d
parentab30965d9bfcd04931f9b70d00faa2ea614835a8
ALSA: oss: underflow in snd_mixer_oss_proc_write()

We cap the upper bound of "idx" but not the negative side.  Let's make
it unsigned to fix this.

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