diff options
author | Joel Schopp <jschopp@austin.ibm.com> | 2005-08-12 21:34:58 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-30 05:42:35 +0200 |
commit | 597f95e2bfbe9b83ed8b0761ebf4e7d55fd4df17 (patch) | |
tree | 210cf02ca0d699bd2cc8f63f9e02d3ca69ceb5ab /arch/ppc64 | |
parent | [PATCH] ppc64: of_device.c remove useless code (diff) | |
download | linux-597f95e2bfbe9b83ed8b0761ebf4e7d55fd4df17.tar.xz linux-597f95e2bfbe9b83ed8b0761ebf4e7d55fd4df17.zip |
[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')
-rw-r--r-- | arch/ppc64/kernel/lparcfg.c | 1 |
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 |