summaryrefslogtreecommitdiffstats
path: root/sound/sparc
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2007-09-05 15:07:57 +0200
committerJaroslav Kysela <perex@perex.cz>2007-10-16 15:59:58 +0200
commit7b85b4f088de8856c5cc5fee18630708ab28dfe8 (patch)
treea5b2363eeb91cd0fb3d708399c6706db21ada92a /sound/sparc
parentafeacfd5f7ee76fe90f95039170f70e3699a6b94 (diff)
downloadlinux-7b85b4f088de8856c5cc5fee18630708ab28dfe8.tar.bz2
[ALSA] sun-cs4231: memory management fix
The chip structure is now allocated by snd_card_new() and it must not be released by separate kfree(). Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/sparc')
-rw-r--r--sound/sparc/cs4231.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c
index ddc0f2e082d6..20daf261d03d 100644
--- a/sound/sparc/cs4231.c
+++ b/sound/sparc/cs4231.c
@@ -1865,8 +1865,6 @@ static int snd_cs4231_sbus_free(struct snd_cs4231 *chip)
if (chip->port)
sbus_iounmap(chip->port, chip->regs_size);
- kfree(chip);
-
return 0;
}
@@ -2037,8 +2035,6 @@ static int snd_cs4231_ebus_free(struct snd_cs4231 *chip)
if (chip->port)
iounmap(chip->port);
- kfree(chip);
-
return 0;
}