diff options
author | 2023-09-19 19:36:07 -0400 | |
---|---|---|
committer | 2024-02-25 02:10:31 -0500 | |
commit | 529f89a9e4531e80c44871d7d0c30df6540c20e5 (patch) | |
tree | 54f0dc53465d180571fb976ba2a4fbdc569c9da7 /fs/affs/super.c | |
parent | rcu pathwalk: prevent bogus hard errors from may_lookup() (diff) | |
download | linux-rng-529f89a9e4531e80c44871d7d0c30df6540c20e5.tar.xz linux-rng-529f89a9e4531e80c44871d7d0c30df6540c20e5.zip |
affs: free affs_sb_info with kfree_rcu()
one of the flags in it is used by ->d_hash()/->d_compare()
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/affs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 58b391446ae1..b56a95cf414a 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c @@ -640,7 +640,7 @@ static void affs_kill_sb(struct super_block *sb) affs_brelse(sbi->s_root_bh); kfree(sbi->s_prefix); mutex_destroy(&sbi->s_bmlock); - kfree(sbi); + kfree_rcu(sbi, rcu); } } |