aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_proc.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-11-07 09:06:45 +0100
committerTakashi Iwai <tiwai@suse.de>2008-11-07 09:06:45 +0100
commit077402317291437521ed86d3326b3bcc62d40529 (patch)
tree614e1d233533e393e1ded8dc33bb7a3c6876f89b /sound/pci/hda/hda_proc.c
parentea2da6e898033b9736a26cf588b9ce841a433337 (diff)
parent959973b92d3ba235edfa5dcb5df1be1e5d1deba2 (diff)
downloadkernel_samsung_smdk4412-077402317291437521ed86d3326b3bcc62d40529.zip
kernel_samsung_smdk4412-077402317291437521ed86d3326b3bcc62d40529.tar.gz
kernel_samsung_smdk4412-077402317291437521ed86d3326b3bcc62d40529.tar.bz2
Merge branch 'topic/fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/hda_proc.c')
-rw-r--r--sound/pci/hda/hda_proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
index b36d4d0..64b6a38 100644
--- a/sound/pci/hda/hda_proc.c
+++ b/sound/pci/hda/hda_proc.c
@@ -450,6 +450,8 @@ static void print_gpio(struct snd_info_buffer *buffer,
(gpio & AC_GPIO_UNSOLICITED) ? 1 : 0,
(gpio & AC_GPIO_WAKE) ? 1 : 0);
max = gpio & AC_GPIO_IO_COUNT;
+ if (!max || max > 8)
+ return;
enable = snd_hda_codec_read(codec, nid, 0,
AC_VERB_GET_GPIO_MASK, 0);
direction = snd_hda_codec_read(codec, nid, 0,