[PATCH 2/3] fs: squashfs: Do not free root inode

Sascha Hauer s.hauer at pengutronix.de
Mon Aug 10 07:12:11 EDT 2020


With inode reference counting in place the core will free the root
inode, so do not free it in the squashfs code.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 fs/squashfs/super.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c
index e2b7b8d5a1..35df3a0307 100644
--- a/fs/squashfs/super.c
+++ b/fs/squashfs/super.c
@@ -83,7 +83,6 @@ void squashfs_put_super(struct super_block *sb)
 	}
 
 	if (sb->s_root) {
-		kfree(squashfs_i(sb->s_root->d_inode));
 		kfree(sb->s_root);
 		sb->s_root = NULL;
 	}
-- 
2.28.0




More information about the barebox mailing list