]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit838befe8657712d6509a24ed61bd30e4f007b04e
tree462ab3de3b1e8b3f6a14f1c04b9632de4fb2bc90
parenta2a0ec005ec3cfb7217df181ccd40dc8ba803f7f
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: 626d171c2ac6('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