sb->s_fs_info should only be freed after the superblock has been marked inactive in generic_shutdown_super, which means either in ->put_super or in ->kill_sb after generic_shutdown_super has returned. Fix the instances where that is not the case. Diffstat arch/s390/hypfs/inode.c | 3 +-- fs/devpts/inode.c | 2 +- fs/ramfs/inode.c | 2 +- security/selinux/selinuxfs.c | 5 +---- 4 files changed, 4 insertions(+), 8 deletions(-)