diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-10 12:29:06 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-20 14:35:34 +0200 |
commit | 07a7a6ce22ea0bbbb41252c018d83ae68f76df34 (patch) | |
tree | 451bf36636ef62154b625081e39b92761559af7d /fs/squashfs | |
parent | b81f475bcd34c01e393ff8039a70ec9a0794f688 (diff) | |
download | barebox-07a7a6ce22ea0bbbb41252c018d83ae68f76df34.tar.gz barebox-07a7a6ce22ea0bbbb41252c018d83ae68f76df34.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>
Diffstat (limited to 'fs/squashfs')
-rw-r--r-- | fs/squashfs/super.c | 1 |
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; } |