Skip to content
Commit 2ba34e43 authored by Ben Hutchings's avatar Ben Hutchings Committed by Takashi Iwai
Browse files

ALSA: fm801: Fix double free in case of error in tuner detection

Commit 96760015


("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: default avatarHor Jiun Shyong <jiunshyong@gmail.com>
References: http://bugs.debian.org/641946
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Cc: stable@kernel.org [v3.0+]
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 46724c2e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment