From: Jesper Juhl Date: Mon, 13 Jun 2011 21:52:02 +0000 (+0200) Subject: ALSA: 6fire: Fix double-free bug in usb6fire_fw_ezusb_upload() X-Git-Tag: v3.0-rc4~18^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37f7ec38ea5c31180461f82e895e13fdd549b595;p=pandora-kernel.git ALSA: 6fire: Fix double-free bug in usb6fire_fw_ezusb_upload() We have a double-free bug in sound/usb/6fire/firmware.c::usb6fire_fw_ezusb_upload(). We already call release_firmware(fw) on line 258, so when we then do it again after usb6fire_fw_ezusb_write() returns <0, we have a double-free. Easily fixed by just removing the last call to release_firmware(). Signed-off-by: Jesper Juhl Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed