jffs2: remove unneeded kfree
c->oobbuf hasn't been kmalloced in jffs2_dataflash_setup, so there is no need to free it. Signed-off-by: Wei Fang <fangwei1@huawei.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
ecb43e0a5f
commit
16c863bbf4
|
@ -1274,7 +1274,6 @@ int jffs2_dataflash_setup(struct jffs2_sb_info *c) {
|
||||||
#ifdef CONFIG_JFFS2_FS_WBUF_VERIFY
|
#ifdef CONFIG_JFFS2_FS_WBUF_VERIFY
|
||||||
c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL);
|
c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL);
|
||||||
if (!c->wbuf_verify) {
|
if (!c->wbuf_verify) {
|
||||||
kfree(c->oobbuf);
|
|
||||||
kfree(c->wbuf);
|
kfree(c->wbuf);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue