projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afeacfd
)
[ALSA] sun-cs4231: memory management fix
author
Krzysztof Helt
<krzysztof.h1@wp.pl>
Wed, 5 Sep 2007 13:07:57 +0000
(15:07 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Tue, 16 Oct 2007 13:59:58 +0000
(15:59 +0200)
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>
sound/sparc/cs4231.c
patch
|
blob
|
history
diff --git
a/sound/sparc/cs4231.c
b/sound/sparc/cs4231.c
index
ddc0f2e
..
20daf26
100644
(file)
--- 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;
}