ALSA: dice: fix memory leak when unplugging
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 27 Mar 2016 23:29:32 +0000 (08:29 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Mar 2016 07:32:57 +0000 (09:32 +0200)
commit6b94fb14fcff3d9be13aae271f2345ab3f656b0c
tree462ab3de3b1e8b3f6a14f1c04b9632de4fb2bc90
parent83a9efb5b8170b7cffef4f62656656e1d8ad2ccd
ALSA: dice: fix memory leak when unplugging

When sound card is going to be released, dice private data is
also released. Then all of data should be released. However,
stream data is not released. This causes memory leak when
unplugging dice unit.

This commit fixes the bug.

Fixes: 4bdc495c87b3('ALSA: dice: handle several PCM substreams when any isochronous streams are available')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-stream.c