projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2eb31d
)
ALSA: firewire-tascam: Fix to handle error from initialization of stream data
author
Takashi Sakamoto
<o-takashi@sakamocchi.jp>
Tue, 3 Jan 2017 02:58:33 +0000
(11:58 +0900)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 3 Jan 2017 10:36:34 +0000
(11:36 +0100)
This module has a bug not to return error code in a case that data
structure for transmitted packets fails to be initialized.
This commit fixes the bug.
Fixes:
35efa5c489de
("ALSA: firewire-tascam: add streaming functionality")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/tascam/tascam-stream.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/firewire/tascam/tascam-stream.c
b/sound/firewire/tascam/tascam-stream.c
index 4ad3bd7fd4453e3a64fc4cd95001165510292559..f1657a4e0621ef4999349477ce6e71fdbcd7f411 100644
(file)
--- a/
sound/firewire/tascam/tascam-stream.c
+++ b/
sound/firewire/tascam/tascam-stream.c
@@
-343,7
+343,7
@@
int snd_tscm_stream_init_duplex(struct snd_tscm *tscm)
if (err < 0)
amdtp_stream_destroy(&tscm->rx_stream);
- return
0
;
+ return
err
;
}
/* At bus reset, streaming is stopped and some registers are clear. */