VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   34 Branches   58 Tags
author: Hans Holmberg <hans.holmberg@cnexlabs.com> 2019-02-11 13:25:03 +0100 committer: Jens Axboe <axboe@kernel.dk> 2019-02-11 08:18:07 -0700 commit: 6916cf5426d08ea8be50ab4ba7ff86ea022cdff3 parent: f9324980d7300f961e9895ad94d5ea71c0fe187e
Commit Summary:
lightnvm: pblk: use vfree to free metadata on error path
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c
index 1ff165351180..1b5ff51faa63 100644
--- a/drivers/lightnvm/pblk-core.c
+++ b/drivers/lightnvm/pblk-core.c
@@ -141,7 +141,7 @@ struct nvm_chk_meta *pblk_get_chunk_meta(struct pblk *pblk)
 
 	ret = nvm_get_chunk_meta(dev, ppa, geo->all_chunks, meta);
 	if (ret) {
-		kfree(meta);
+		vfree(meta);
 		return ERR_PTR(-EIO);
 	}