From: Greg Thelen Date: Mon, 13 Jun 2011 14:45:45 +0000 (-0700) Subject: ALSA: hda: check make_exec_verb() return value X-Git-Tag: v3.1-rc1~271^2^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9857edfd4db0dc879f786e042f24900fd683b0ac;p=pandora-kernel.git ALSA: hda: check make_exec_verb() return value If given a -1 cmd parameter then make_exec_verb() returns -1 without setting the res output value. Prior to this change snd_hda_codec_read() assumed that make_exec_verb() unconditionally set res regardless of the cmd value. This change explicitly checks the make_exec_verb() return value before consuming the potentially unset res value. Signed-off-by: Greg Thelen Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed