Unverified Commit 3de99ef9 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1059 [sync] PR-1028: fs: hfsplus: fix UAF issue in hfsplus_put_super

parents 520f5a9a 929074a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -295,11 +295,11 @@ static void hfsplus_put_super(struct super_block *sb)
		hfsplus_sync_fs(sb, 1);
	}

	iput(sbi->alloc_file);
	iput(sbi->hidden_dir);
	hfs_btree_close(sbi->attr_tree);
	hfs_btree_close(sbi->cat_tree);
	hfs_btree_close(sbi->ext_tree);
	iput(sbi->alloc_file);
	iput(sbi->hidden_dir);
	kfree(sbi->s_vhdr_buf);
	kfree(sbi->s_backup_vhdr_buf);
	unload_nls(sbi->nls);