]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: oxfw: fix a condition and return code in start_stream()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 27 Feb 2015 00:39:32 +0000 (09:39 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Feb 2015 13:42:18 +0000 (14:42 +0100)
commitd28d74f1ec6ba72bcfbe873ce2e8979a29333cec
tree7aa874e40c69809f05d56e50eb8644ad2ae8e2fb
parentd80f35a9df6b6501194d6bfb3e1cae9ab6540523
ALSA: oxfw: fix a condition and return code in start_stream()

The amdtp_stream_wait_callback() doesn't return minus value and
the return code is not for error code.

This commit fixes with a propper condition and an error code.

Fixes: d737bb79e425 ('ALSA: oxfw: Change the way to start stream')
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: <stable@vger.kernel.org> # 3.19+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/oxfw/oxfw-stream.c