diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-04-26 22:00:29 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-04-26 15:24:54 +0200 |
commit | 0f925660a7bc49b269c163249a5d06da3a0c7b0a (patch) | |
tree | 1e899c0d64f0e313eb3d1abd762f4046e68880c5 /sound | |
parent | 8a7d6003df41cb16f6b3b620da044fbd92d2f5ee (diff) | |
download | linux-0f925660a7bc49b269c163249a5d06da3a0c7b0a.tar.bz2 |
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: 436b5abe2224 ('ALSA: dice: handle whole available isochronous streams')
Cc: <stable@vger.kernel.org> # v4.6+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/firewire/dice/dice-stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/dice/dice-stream.c b/sound/firewire/dice/dice-stream.c index 8573289c381e..928a255bfc35 100644 --- a/sound/firewire/dice/dice-stream.c +++ b/sound/firewire/dice/dice-stream.c @@ -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; } } |