From: Takashi Iwai Date: Mon, 9 Jan 2012 17:22:35 +0000 (+0100) Subject: ALSA: hdsp - Fix potential Oops in snd_hdsp_info_pref_sync_ref() X-Git-Tag: v3.3-rc1~88^2~1^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9badda0a0afffebbe1cb30565800896534a6c5bd;p=pandora-kernel.git 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed