summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorGreg Thelen <gthelen@google.com>2011-06-13 07:45:45 -0700
committerTakashi Iwai <tiwai@suse.de>2011-06-13 17:52:06 +0200
commit9857edfd4db0dc879f786e042f24900fd683b0ac (patch)
treea29500b8a2d1f50b241cf9478a8cfe8e02f1b000 /tools/perf/scripts/python/sctop.py
parent5ab775c7078533de0032fba3619d24e5cb9a6a34 (diff)
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 <gthelen@google.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions