OSDN Git Service

ALSA: hda - Sanity check of access to SPDIF controls array
authorTakashi Iwai <tiwai@suse.de>
Tue, 24 Apr 2018 14:53:24 +0000 (16:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 Apr 2018 15:18:59 +0000 (17:18 +0200)
commit08605068df8bf52c0ec5a8897ddf2b4de753c9d0
tree71fb412c40b336905efd7b2257ee9e87bea1457c
parentc1a36101040a71dbc42afca5e329048042e4afef
ALSA: hda - Sanity check of access to SPDIF controls array

Put WARN_ON() and bail out if the given index is over the allocated
array of the given SPDIF controls.  It's merely a sanity check to
catch any potential issues (if any).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c