summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-08-10 12:29:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-08-20 14:35:54 +0200
commit61dc805074ffee1cb2c0a75dadf7b651bd43dc81 (patch)
tree43df6576ced6855bb66825e89e00079d6e621ba2
parent0728007a7b77062d1cd351c24da47ff83d64705b (diff)
downloadbarebox-61dc805074ffee1cb2c0a75dadf7b651bd43dc81.tar.gz
barebox-61dc805074ffee1cb2c0a75dadf7b651bd43dc81.tar.xz
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 <s.hauer@pengutronix.de>
-rw-r--r--fs/squashfs/super.c1
1 files changed, 0 insertions, 1 deletions
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;
}