projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ff98ae
)
[PATCH] ppc64: lparconfig.c memory leak
author
Joel Schopp
<jschopp@austin.ibm.com>
Fri, 12 Aug 2005 19:34:58 +0000
(14:34 -0500)
committer
Paul Mackerras
<paulus@samba.org>
Tue, 30 Aug 2005 03:42:35 +0000
(13:42 +1000)
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>
arch/ppc64/kernel/lparcfg.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ppc64/kernel/lparcfg.c
b/arch/ppc64/kernel/lparcfg.c
index 9d034ff062b166b2beaae7138b992d280cf63804..edad361a8db00a9fbc5e3c7950ee575e22f8d4db 100644
(file)
--- 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