ALSA: hda: fix out-of-bound hdmi_eld.sad[] write
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 29 Jul 2009 12:35:20 +0000 (14:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Jul 2009 12:35:20 +0000 (14:35 +0200)
commit78735cffc2d9ab0dec32f1ba7cbc1d84b45bbf29
treee12a32a8d7735e2ef0926d6d4f812e1d5dd155fc
parent626f5cefc60b281a00db1402b82deff82080c70a
ALSA: hda: fix out-of-bound hdmi_eld.sad[] write

e->sad[] is declared with size ELD_MAX_SAD=16, but the guard
allows range 0-31.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_eld.c