[ALSA] ac97 - Fix potential negative array index
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Nov 2006 14:48:43 +0000 (15:48 +0100)
committerJaroslav Kysela <perex@server.perex.cz>
Wed, 20 Dec 2006 07:55:50 +0000 (08:55 +0100)
commitc19bcdc64a13c6d7eedfdb46d705531e24e69cad
tree495ed0f8f3553905d74d0bc26352927591f6fdfd
parentb90d7760ea784f916cb1fc0d8123410f1f0c9194
[ALSA] ac97 - Fix potential negative array index

Fix the case cidx2 >= 0 and cidx2 < 0 which may result in negative
array index.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/ac97/ac97_patch.c