Commit 48b2549f authored by Dongliang Mu's avatar Dongliang Mu Committed by jiayingbao
Browse files

platform/x86/intel: tpmi: Revise the comment of intel_vsec_add_aux

mainline inclusion
from mainline-v6.3-rc5
commit 8d13d50b
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8WOEC

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8d13d50b157655247cdb3a69aca7836b58ff8735



-------------------------------------

intel_vsec_add_aux() is resource managed including res and
feature_vsec_dev memory.

Fix this by revising the comment of intel_vsec_add_aux since res variable
will also be freed in the intel_vsec_add_aux.

Intel-SIG: commit 8d13d50b platform/x86/intel: tpmi: Revise the comment of intel_vsec_add_aux.
Backport Intel_tpmi base driver.

Signed-off-by: default avatarDongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/r/20230309040107.534716-3-dzm91@hust.edu.cn


Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
[ Yingbao Jia: amend commit log ]
Signed-off-by: default avatarYingbao Jia <yingbao.jia@intel.com>
parent c39bd6b8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -239,8 +239,8 @@ static int tpmi_create_device(struct intel_tpmi_info *tpmi_info,
	/*
	 * intel_vsec_add_aux() is resource managed, no explicit
	 * delete is required on error or on module unload.
	 * feature_vsec_dev memory is also freed as part of device
	 * delete.
	 * feature_vsec_dev and res memory are also freed as part of
	 * device deletion.
	 */
	return intel_vsec_add_aux(vsec_dev->pcidev, &vsec_dev->auxdev.dev,
				  feature_vsec_dev, feature_id_name);