tree 210cf02ca0d699bd2cc8f63f9e02d3ca69ceb5ab
parent 5ff98ae18bec792d77bfea801aa4b3385b98b355
author Joel Schopp <[EMAIL PROTECTED]> Sat, 13 Aug 2005 00:34:58 -0500
committer Paul Mackerras <[EMAIL PROTECTED]> Tue, 30 Aug 2005 13:42:35 +1000

[PATCH] ppc64: lparconfig.c memory leak

This patch fixes a rare memory leak found by Coverity.

Signed-off-by: Joel Schopp <[EMAIL PROTECTED]>
Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>

 arch/ppc64/kernel/lparcfg.c |    1 +
 1 files changed, 1 insertion(+)

diff --git a/arch/ppc64/kernel/lparcfg.c b/arch/ppc64/kernel/lparcfg.c
--- a/arch/ppc64/kernel/lparcfg.c
+++ b/arch/ppc64/kernel/lparcfg.c
@@ -273,6 +273,7 @@ static void parse_system_parameter_strin
                if (!workbuffer) {
                        printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
                               __FILE__, __FUNCTION__, __LINE__);
+                       kfree(local_buffer);                    
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

Reply via email to