ALSA: dice: fix error path for initialization of stream structures
[linux-2.6-block.git] / sound / firewire / dice / dice-stream.c
index af8c5a2c28f3b7416c11a7576ebf1a25ccc4d6b0..f6a8627ae5a2b0ce417ecddda9485dae93630629 100644 (file)
@@ -570,7 +570,7 @@ int snd_dice_stream_init_duplex(struct snd_dice *dice)
                                destroy_stream(dice, AMDTP_OUT_STREAM, i);
                        for (i = 0; i < MAX_STREAMS; i++)
                                destroy_stream(dice, AMDTP_IN_STREAM, i);
-                       break;
+                       goto end;
                }
        }