ALSA: asihpi - Don't leak firmware if mem alloc fails
authorJesper Juhl <jj@chaosbits.net>
Sun, 31 Jul 2011 21:16:43 +0000 (23:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 1 Aug 2011 08:57:06 +0000 (10:57 +0200)
commitdc889f18646325d07eb24ef634f082d60b0beebb
treeb8e5c38980bf8bd88219da923800dfceae6156ef
parentec2cf68e024b4f66df11683147d63e07db6ee875
ALSA: asihpi - Don't leak firmware if mem alloc fails

We leak the memory allocated to 'firmware' when we fail to
release_firmware() after a kmalloc() failure in hpi_dsp_code_open().
This patch should take care of the leak.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpidspcd.c