diff --git a/fs/super.c b/fs/super.c index 5bab94fb7e03..3f48e5cd733f 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1723,6 +1723,8 @@ void kill_block_super(struct super_block *sb) if (bdev) { sync_blockdev(bdev); bdev_fput(sb->s_bdev_file); + }else{ + kfree(sb->s_fs_info); } }