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)
commitdbd7396b4f24e0c3284fcc05f5def24f52c09884
tree4f5579e0621298f32f08fcf9d2b5cbe555ac1443
parent0c264af7be2013266c5b4c644f3f366399ee490a
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: 9b2bb4f2f4a2 ('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