Skip to contentSkip to conversation

sun-cs4231: memory management fix

PATCH Applied Krzysztof Helt 2 participants 2 messages Sep 4, 2007 – Sep 5, 2007 Sound

lore
Share & tools
lore
#0 lore raw

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().

---

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 s
 	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 s
 	if (chip->port)
 		iounmap(chip->port);
 
-	kfree(chip);
-
 	return 0;
 }
Applied
#1 lore raw

At 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 separate kfree().

---

This bug was introduced by the previous patch.

Applied. Thanks.

Takashi