sun-cs4231: memory management fix
PATCH 1/1 sun-cs4231: memory management fix
From: Krzysztof Helt <[email protected]>
The chip structure is now allocated by snd_card_new() and it must not be released by separate kfree().
Signed-off-by Krzysztof Helt <[email protected]>
---
This bug was introduced by the previous patch.
sound/sparc/cs4231.c +0 -4
@@ -1865,8 +1865,6 @@ static int snd_cs4231_sbus_free(struct sif (chip->port)sbus_iounmap (chip->port, chip->regs_size); -kfree (chip); -return 0 ; }
@@ -2037,8 +2035,6 @@ static int snd_cs4231_ebus_free(struct sif (chip->port)iounmap (chip->port); -kfree (chip); -return 0 ; }
Takashi Iwai
AppliedAt Tue, 4 Sep 2007 21:15:25 +0200,
Quoted 10 lines · Krzysztof Helt
From: Krzysztof Helt <[email protected]>
The chip structure is now allocated by
snd_card_new()and it must not be released by separatekfree().Signed-off-by Krzysztof Helt <[email protected]>---
This bug was introduced by the previous patch.
Applied. Thanks.
Takashi