]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: 6fire: Don't leak firmware in error path
authorJesper Juhl <jj@chaosbits.net>
Mon, 30 May 2011 10:49:01 +0000 (12:49 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 2 Jun 2011 17:56:31 +0000 (19:56 +0200)
commit8a1fc4a4f84094769667543f87b51aa7589c062f
tree0f32e4bc1dd584e0f5e4cae2ceb7acdc0e74a61e
parentd58a2d7d1853cb4cba829d0d631d4272d7983b74
ALSA: 6fire: Don't leak firmware in error path

One of the error paths in
sound/usb/6fire/firmware.c::usb6fire_fw_ezusb_upload() neglects to free
the memory allocated for the firmware before returning, thus leaking the
memory.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/6fire/firmware.c