diff options
author | Joel Schopp <jschopp@austin.ibm.com> | 2005-08-12 19:34:58 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-30 03:42:35 (GMT) |
commit | 597f95e2bfbe9b83ed8b0761ebf4e7d55fd4df17 (patch) | |
tree | 210cf02ca0d699bd2cc8f63f9e02d3ca69ceb5ab /arch | |
parent | 5ff98ae18bec792d77bfea801aa4b3385b98b355 (diff) | |
download | linux-fsl-qoriq-597f95e2bfbe9b83ed8b0761ebf4e7d55fd4df17.tar.xz |
[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')
-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 9d034ff..edad361 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 |