diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-01-17 21:23:34 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-01-17 21:23:34 +0300 |
commit | eebe75827b73b0a61e84acd2033ce304a3166d70 (patch) | |
tree | 721afe7821673ad1efd497428f5fbd7571cdfbc7 /fs | |
parent | c2459ce011f65487231c6340486d5acdaceac6a7 (diff) | |
parent | c919330dd57835970b37676d377de3eaaea2c1e9 (diff) | |
download | linux-eebe75827b73b0a61e84acd2033ce304a3166d70.tar.xz |
Merge tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/linux
Pull fscrypt fix from Eric Biggers:
"Fix a bug in my change to how f2fs frees its superblock info (which
was part of changing the timing of fscrypt keyring destruction)"
* tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/linux:
f2fs: fix double free of f2fs_sb_info
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index d00d21a8b53a..d45ab0992ae5 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4880,6 +4880,7 @@ free_sbi: if (sbi->s_chksum_driver) crypto_free_shash(sbi->s_chksum_driver); kfree(sbi); + sb->s_fs_info = NULL; /* give only one another chance */ if (retry_cnt > 0 && skip_recovery) { |