Commit 0f925660 authored by 坂本 貴史's avatar 坂本 貴史 Committed by Takashi Iwai

ALSA: dice: fix error path to destroy initialized stream data

In error path of snd_dice_stream_init_duplex(), stream data for incoming
packet can be left to be initialized.

This commit fixes it.

Fixes: 436b5abe ('ALSA: dice: handle whole available isochronous streams')
Cc: <> # v4.6+
Signed-off-by: 坂本 貴史's avatarTakashi Sakamoto <>
Signed-off-by: default avatarTakashi Iwai <>
parent 8a7d6003
......@@ -435,7 +435,7 @@ int snd_dice_stream_init_duplex(struct snd_dice *dice)
err = init_stream(dice, AMDTP_IN_STREAM, i);
if (err < 0) {
for (; i >= 0; i--)
destroy_stream(dice, AMDTP_OUT_STREAM, i);
destroy_stream(dice, AMDTP_IN_STREAM, i);
goto end;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment