diff --git a/plugin/disk_format/disk_format40.c b/plugin/disk_format/disk_format40.c index 41d7bbc..68b2662 100644 --- a/plugin/disk_format/disk_format40.c +++ b/plugin/disk_format/disk_format40.c @@ -372,11 +372,11 @@ static int try_init_format40(struct super_block *super, reiser4_set_block_count(super, get_format40_block_count(sb_copy)); sbinfo->blocks_free = get_format40_free_blocks(sb_copy); sbinfo->version = get_format40_version(sb_copy); - kfree(sb_copy); if (update_backup_version(sb_copy)) printk("reiser4: %s: use 'fsck.reiser4 --fix' " "to complete disk format upgrade.\n", super->s_id); + kfree(sb_copy); sbinfo->fsuid = 0; sbinfo->fs_flags |= (1 << REISER4_ADG); /* hard links for directories