Skip to content

Commit fa48a16

Browse files
takaswiegregkh
authored andcommitted
ALSA: firewire-tascam: Fix to handle error from initialization of stream data
commit 6a2a2f45560a9cb7bc49820883b042e44f83726c upstream. 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: 35efa5c ("ALSA: firewire-tascam: add streaming functionality") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a2f7271 commit fa48a16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/firewire/tascam/tascam-stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ int snd_tscm_stream_init_duplex(struct snd_tscm *tscm)
343343
if (err < 0)
344344
amdtp_stream_destroy(&tscm->rx_stream);
345345

346-
return 0;
346+
return err;
347347
}
348348

349349
/* At bus reset, streaming is stopped and some registers are clear. */

0 commit comments

Comments
 (0)