Skip to contentSkip to conversation

jffs2: remove unneeded kfree

PATCH RESEND Applied Wei Fang 2 participants 2 messages Jul 7, 2015 – Sep 29, 2015

Subsystems (2)
lore
Share & tools
lore

Wei Fang

author
#0 lore raw

PATCH RESEND 1/1 jffs2: remove unneeded kfree

c->oobbuf hasn't been kmalloced in jffs2_dataflash_setup, so there is no need to free it.

---
 fs/jffs2/wbuf.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/jffs2/wbuf.c +0 -1
index 09ed551..63f31c0 100644
@@ -1274,7 +1274,6 @@ int jffs2_dataflash_setup(struct jffs2_sb_info *c) {
 #ifdef CONFIG_JFFS2_FS_WBUF_VERIFY
 	c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL);
 	if (!c->wbuf_verify) {
-		kfree(c->oobbuf);
 		kfree(c->wbuf);
 		return -ENOMEM;
 	}
Signature · 1 line
1.7.1