Unverified Commit 95b9421e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1028 fs: hfsplus: fix UAF issue in hfsplus_put_super

parents a59ed522 028ba66e
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);