From 61dc805074ffee1cb2c0a75dadf7b651bd43dc81 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 10 Aug 2020 12:29:06 +0200 Subject: fs: squashfs: Do not free root inode 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 --- 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; } -- cgit v1.2.3