summaryrefslogtreecommitdiff
path: root/arch/ppc64/kernel
diff options
context:
space:
mode:
authorJoel Schopp <jschopp@austin.ibm.com>2005-08-12 14:34:58 -0500
committerPaul Mackerras <paulus@samba.org>2005-08-30 13:42:35 +1000
commit597f95e2bfbe9b83ed8b0761ebf4e7d55fd4df17 (patch)
tree210cf02ca0d699bd2cc8f63f9e02d3ca69ceb5ab /arch/ppc64/kernel
parent5ff98ae18bec792d77bfea801aa4b3385b98b355 (diff)
[PATCH] ppc64: lparconfig.c memory leak
This patch fixes a rare memory leak found by Coverity. Signed-off-by: Joel Schopp <jschopp@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel')
-rw-r--r--arch/ppc64/kernel/lparcfg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ppc64/kernel/lparcfg.c b/arch/ppc64/kernel/lparcfg.c
index 9d034ff062b1..edad361a8db0 100644
--- a/arch/ppc64/kernel/lparcfg.c
+++ b/arch/ppc64/kernel/lparcfg.c
@@ -273,6 +273,7 @@ static void parse_system_parameter_string(struct seq_file *m)
if (!workbuffer) {
printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
__FILE__, __FUNCTION__, __LINE__);
+ kfree(local_buffer);
return;
}
#ifdef LPARCFG_DEBUG