Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7b85b4f088de8856c5cc5fee18630708ab28dfe8
Commit:     7b85b4f088de8856c5cc5fee18630708ab28dfe8
Parent:     afeacfd5f7ee76fe90f95039170f70e3699a6b94
Author:     Krzysztof Helt <[EMAIL PROTECTED]>
AuthorDate: Wed Sep 5 15:07:57 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:59:58 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/sparc/cs4231.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c
index ddc0f2e..20daf26 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;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to