ALSA: dice: fix error path to destroy initialized stream data
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 26 Apr 2018 13:00:29 +0000 (22:00 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2018 19:58:14 +0000 (12:58 -0700)
commitd03fbe62e173c8946b271e521d7b9237ae4d2305
tree173b62cbcc9af4bbc1ffeb13c1224d58ddc3a71d
parentba9c9886a40ddaeaa07e8fc81da3bbc755192115
ALSA: dice: fix error path to destroy initialized stream data

commit 0f925660a7bc49b269c163249a5d06da3a0c7b0a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/firewire/dice/dice-stream.c