aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hpfs/super.c')
-rw-r--r--fs/hpfs/super.c5
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,
99static void hpfs_put_super(struct super_block *s) 99static 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
109unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno) 114unsigned hpfs_count_one_bitmap(struct super_block *s, secno secno)