]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-motu: destroy stream data surely at failure of card initialization
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 20 Aug 2017 06:55:02 +0000 (15:55 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 20 Aug 2017 07:40:45 +0000 (09:40 +0200)
commit004917a49e90767692a23c3dc390301c43a840a2
tree4f5579e0621298f32f08fcf9d2b5cbe555ac1443
parentd2e867d966852fb5a723da013824c0e69fd1fa26
ALSA: firewire-motu: destroy stream data surely at failure of card initialization

When failing sound card registration after initializing stream data, this
module leaves allocated data in stream data. This commit fixes the bug.

Fixes: b057591f1d57 ('ALSA: firewire-motu: add stream management functionality')
Cc: <stable@vger.kernel.org> # v4.12+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/motu.c