Skip to content

Commit eebe758

Browse files
committed
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
2 parents c2459ce + c919330 commit eebe758

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/f2fs/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4880,6 +4880,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
48804880
if (sbi->s_chksum_driver)
48814881
crypto_free_shash(sbi->s_chksum_driver);
48824882
kfree(sbi);
4883+
sb->s_fs_info = NULL;
48834884

48844885
/* give only one another chance */
48854886
if (retry_cnt > 0 && skip_recovery) {

0 commit comments

Comments
 (0)