]> git.karo-electronics.de Git - mv-sheeva.git/commit
ALSA: hdsp - Fix potential Oops in snd_hdsp_info_pref_sync_ref()
authorTakashi Iwai <tiwai@suse.de>
Mon, 9 Jan 2012 17:22:35 +0000 (18:22 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Jan 2012 17:27:44 +0000 (18:27 +0100)
commit9badda0a0afffebbe1cb30565800896534a6c5bd
tree2b004e66d252420b68ce68f86c07444576c6dc7b
parent80c8a2a372599e604b04a9c568952fe39cd1851d
ALSA: hdsp - Fix potential Oops in snd_hdsp_info_pref_sync_ref()

Dan Carpenter reported that setting 0 to uinfo->value.enumerated.items
in snd_hdsp_info_pref_sync_ref() may lead to Oops.  This function should
return an error immediately in such a case instead.

Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdsp.c