]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: fireworks: fix memory leak of response buffer at error path
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 17 Sep 2018 08:26:41 +0000 (17:26 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Sep 2018 11:41:14 +0000 (13:41 +0200)
commitda45772f15427864efda55eaa7c6e1cf87ca2635
treef79472179806210280cb49c62be68b2260030424
parent9e4c121724558f37e1685dae5374a79c378c9cdb
ALSA: fireworks: fix memory leak of response buffer at error path

After allocating memory object for response buffer, ALSA fireworks
driver has leak of the memory object at error path.

This commit releases the object at the error path.

Fixes: 4bca1e7c19dd('ALSA: fireworks: 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/fireworks/fireworks.c