Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9857edfd authored by Greg Thelen's avatar Greg Thelen Committed by Takashi Iwai
Browse files

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: default avatarGreg Thelen <gthelen@google.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5ab775c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment