Skip to content

Commit 0f92566

Browse files
takaswietiwai
authored andcommitted
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: 436b5ab ('ALSA: dice: handle whole available isochronous streams') Cc: <[email protected]> # v4.6+ Signed-off-by: Takashi Sakamoto <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 8a7d600 commit 0f92566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/firewire/dice/dice-stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ int snd_dice_stream_init_duplex(struct snd_dice *dice)
435435
err = init_stream(dice, AMDTP_IN_STREAM, i);
436436
if (err < 0) {
437437
for (; i >= 0; i--)
438-
destroy_stream(dice, AMDTP_OUT_STREAM, i);
438+
destroy_stream(dice, AMDTP_IN_STREAM, i);
439439
goto end;
440440
}
441441
}

0 commit comments

Comments
 (0)