]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: bebob: fix memory leak for M-Audio FW1814 and ProjectMix I/O at error path
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 17 Sep 2018 08:25:24 +0000 (17:25 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Sep 2018 11:36:54 +0000 (13:36 +0200)
commit25d7e2b1fb9d406fbf9288be6c12888e1ddd5c96
treeda51dd2421493b5256b09888f9caf46406814e04
parent18812b1fc2f62ca0f4d4a3cda4b626b6fb7c10a0
ALSA: bebob: fix memory leak for M-Audio FW1814 and ProjectMix I/O at error path

After allocating model-dependent data for M-Audio FW1814 and ProjectMix
I/O, ALSA bebob driver has memory leak at error path.

This commit releases the allocated data at the error path.

Fixes: 544fa5727024('ALSA: bebob: delayed registration of sound card')
Cc: <stable@vger.kernel.org> # v4.7+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob.c
sound/firewire/bebob/bebob_maudio.c