diff options
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r-- | fs/udf/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 0ba44107d8f1..04802cc39b18 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -2062,6 +2062,9 @@ static void udf_put_super(struct super_block *sb) | |||
2062 | struct udf_sb_info *sbi; | 2062 | struct udf_sb_info *sbi; |
2063 | 2063 | ||
2064 | sbi = UDF_SB(sb); | 2064 | sbi = UDF_SB(sb); |
2065 | |||
2066 | lock_kernel(); | ||
2067 | |||
2065 | if (sbi->s_vat_inode) | 2068 | if (sbi->s_vat_inode) |
2066 | iput(sbi->s_vat_inode); | 2069 | iput(sbi->s_vat_inode); |
2067 | if (sbi->s_partitions) | 2070 | if (sbi->s_partitions) |
@@ -2077,6 +2080,8 @@ static void udf_put_super(struct super_block *sb) | |||
2077 | kfree(sbi->s_partmaps); | 2080 | kfree(sbi->s_partmaps); |
2078 | kfree(sb->s_fs_info); | 2081 | kfree(sb->s_fs_info); |
2079 | sb->s_fs_info = NULL; | 2082 | sb->s_fs_info = NULL; |
2083 | |||
2084 | unlock_kernel(); | ||
2080 | } | 2085 | } |
2081 | 2086 | ||
2082 | static int udf_sync_fs(struct super_block *sb, int wait) | 2087 | static int udf_sync_fs(struct super_block *sb, int wait) |