]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaca28003682261fc94225dae862c259550542cc4
tree71fb412c40b336905efd7b2257ee9e87bea1457c
parent09634b3e21ae1168adb96ce29803225a2d3e5297
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