Skip to content

Commit

Permalink
ALSA: firewire-tascam: Fix to handle error from initialization of str…
Browse files Browse the repository at this point in the history
…eam data

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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
takaswie authored and tiwai committed Jan 3, 2017
1 parent e2eb31d commit 6a2a2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/firewire/tascam/tascam-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 6a2a2f4

Please sign in to comment.