From: Ben Hutchings Date: Thu, 22 Sep 2011 13:38:58 +0000 (+0100) Subject: ALSA: fm801: Fix double free in case of error in tuner detection X-Git-Tag: v3.1-rc8~17^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba34e43ba0469086d1ff81c13a9aa9070c1a0e1;p=pandora-kernel.git ALSA: fm801: Fix double free in case of error in tuner detection Commit 9676001559fce06e37c7dc230ab275f605556176 ("ALSA: fm801: add error handling if auto-detect fails") added incorrect error handling. Once we have successfully called snd_device_new(), the cleanup function fm801_free() will automatically be called by snd_card_free() and we must *not* also call fm801_free() directly. Reported-by: Hor Jiun Shyong References: http://bugs.debian.org/641946 Signed-off-by: Ben Hutchings Cc: stable@kernel.org [v3.0+] Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed