summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs46xx/cs46xx_lib.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2016-04-15 15:28:52 +0200
committerTakashi Iwai <tiwai@suse.de>2016-04-15 15:28:52 +0200
commita19c921fca0a865b657d59b2c9a05aa0a2905126 (patch)
tree70582d87dc553510c3471cc6592f4693b4fd2306 /sound/pci/cs46xx/cs46xx_lib.h
parentALSA: pcm : Call kill_fasync() in stream lock (diff)
downloadlinux-a19c921fca0a865b657d59b2c9a05aa0a2905126.tar.xz
linux-a19c921fca0a865b657d59b2c9a05aa0a2905126.zip
ALSA: lx646es: Fix possible uninitialized variable reference
lx_pipe_state() checks the return value from lx_message_send_atomic() and breaks the loop only when it's a negative value. However, lx_message_send_atomic() may return a positive error code (as the return code from the hardware), and then lx_pipe_state() tries to compare the uninitialized current_state variable. Fix this behavior by checking the positive non-zero error code as well. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs46xx/cs46xx_lib.h')
0 files changed, 0 insertions, 0 deletions