From 7b85b4f088de8856c5cc5fee18630708ab28dfe8 Mon Sep 17 00:00:00 2001 From: Krzysztof Helt Date: Wed, 5 Sep 2007 15:07:57 +0200 Subject: [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 Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- sound/sparc/cs4231.c | 4 ---- 1 file changed, 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; } -- cgit v1.2.3