ALSA: hda - Fix error check from snd_hda_get_conn_index() in patch_cirrus.c
authorTakashi Iwai <tiwai@suse.de>
Sat, 20 Aug 2011 07:19:59 +0000 (09:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 20 Aug 2011 07:24:54 +0000 (09:24 +0200)
commit1b004d03d8670bdd871e0f297ed20bc510e404de
treead1df1f55b8b3a004907ceada35c1c185b35461e
parentb6acf013bdc6f6ff9643030add85832d44034a28
ALSA: hda - Fix error check from snd_hda_get_conn_index() in patch_cirrus.c

snd_hda_get_conn_index() returns a negative value while the current code
stores it in an unsigned int.  It must be stored in a signed integer.

Reported-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c