diff options
| -rw-r--r-- | sound/pci/hda/hda_codec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 26d255de6beb..88480c0c58a0 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
| @@ -332,6 +332,12 @@ int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, | |||
| 332 | AC_VERB_GET_CONNECT_LIST, i); | 332 | AC_VERB_GET_CONNECT_LIST, i); |
| 333 | range_val = !!(parm & (1 << (shift-1))); /* ranges */ | 333 | range_val = !!(parm & (1 << (shift-1))); /* ranges */ |
| 334 | val = parm & mask; | 334 | val = parm & mask; |
| 335 | if (val == 0) { | ||
| 336 | snd_printk(KERN_WARNING "hda_codec: " | ||
| 337 | "invalid CONNECT_LIST verb %x[%i]:%x\n", | ||
| 338 | nid, i, parm); | ||
| 339 | return 0; | ||
| 340 | } | ||
| 335 | parm >>= shift; | 341 | parm >>= shift; |
| 336 | if (range_val) { | 342 | if (range_val) { |
| 337 | /* ranges between the previous and this one */ | 343 | /* ranges between the previous and this one */ |
