VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Davidlohr Bueso <dave.bueso@gmail.com> 2010-07-06 00:50:58 -0400 committer: Bob Copeland <me@bobcopeland.com> 2010-07-06 11:05:31 -0400 commit: 70d9e384aa7df681cfffd65947af72b22e86690e parent: 815c4163b6c8ebf8152f42b0a5fd015cfdcedc78
Commit Summary:
omfs: fix memory leak
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index 089839a6cc64..b5d6380e03fb 100644
--- a/fs/omfs/inode.c
+++ b/fs/omfs/inode.c
@@ -529,6 +529,8 @@ out_brelse_bh2:
 out_brelse_bh:
 	brelse(bh);
 end:
+	if (ret)
+		kfree(sbi);
 	return ret;
 }