summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-01-10 12:41:22 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-25 17:24:34 -0800
commit24973a17310bd933969d79cf4080049df85aff2c (patch)
tree116ea3413c3770c20cbf270edeee20e0e907a437 /drivers
parent35cdd5ea88762e22c9d21c5c826cbd7ef1edd7db (diff)
ALSA: hda - Return the error from get_wcaps_type() for invalid NIDs
commit 3a90274de3548ebb2aabfbf488cea8e275a73dc6 upstream. When an invalid NID is given, get_wcaps() returns zero as the error, but get_wcaps_type() takes it as the normal value and returns a bogus AC_WID_AUD_OUT value. This confuses the parser. With this patch, get_wcaps_type() returns -1 when value 0 is given, i.e. an invalid NID is passed to get_wcaps(). Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=740118 Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions