]> 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)
commitb3d7f1c4d860834d5e011e554592940ba00edf52
tree462ab3de3b1e8b3f6a14f1c04b9632de4fb2bc90
parent0ff818bd01dc0e898778ba8c2da3e656fc8da1d2
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: aad13b1ac4b9('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