aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2007-09-05 09:07:57 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:59:58 -0400
commit7b85b4f088de8856c5cc5fee18630708ab28dfe8 (patch)
treea5b2363eeb91cd0fb3d708399c6706db21ada92a
parentafeacfd5f7ee76fe90f95039170f70e3699a6b94 (diff)
[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>
-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)
1865 if (chip->port) 1865 if (chip->port)
1866 sbus_iounmap(chip->port, chip->regs_size); 1866 sbus_iounmap(chip->port, chip->regs_size);
1867 1867
1868 kfree(chip);
1869
1870 return 0; 1868 return 0;
1871} 1869}
1872 1870
@@ -2037,8 +2035,6 @@ static int snd_cs4231_ebus_free(struct snd_cs4231 *chip)
2037 if (chip->port) 2035 if (chip->port)
2038 iounmap(chip->port); 2036 iounmap(chip->port);
2039 2037
2040 kfree(chip);
2041
2042 return 0; 2038 return 0;
2043} 2039}
2044 2040