diff options
Diffstat (limited to 'fs/hpfs/super.c')
-rw-r--r-- | fs/hpfs/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index fc77965be841..437a32e9deac 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -99,11 +99,16 @@ int hpfs_stop_cycles(struct super_block *s, int key, int *c1, int *c2, | |||
99 | static void hpfs_put_super(struct super_block *s) | 99 | static void hpfs_put_super(struct super_block *s) |
100 | { | 100 | { |
101 | struct hpfs_sb_info *sbi = hpfs_sb(s); | 101 | struct hpfs_sb_info *sbi = hpfs_sb(s); |
102 | |||
103 | lock_kernel(); | ||
104 | |||
102 | kfree(sbi->sb_cp_table); | 105 | kfree(sbi->sb_cp_table); |
103 | kfree(sbi->sb_bmp_dir); | 106 | kfree(sbi->sb_bmp_dir); |
104 | unmark_dirty(s); | 107 | unmark_dirty(s); |
105 | s->s_fs_info = NULL; | 108 | s->s_fs_info = NULL; |
106 | kfree(sbi); | 109 | kfree(sbi); |
110 | |||
111 | unlock_kernel(); | ||
107 | } | 112 | } |
108 | 113 | ||
109 | unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno) | 114 | unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno) |