Commit 8d13d50b authored by Dongliang Mu's avatar Dongliang Mu Committed by Hans de Goede

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

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.
Signed-off-by: default avatarDongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/r/20230309040107.534716-3-dzm91@hust.edu.cnReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 4d5a2a7d
...@@ -239,8 +239,8 @@ static int tpmi_create_device(struct intel_tpmi_info *tpmi_info, ...@@ -239,8 +239,8 @@ static int tpmi_create_device(struct intel_tpmi_info *tpmi_info,
/* /*
* intel_vsec_add_aux() is resource managed, no explicit * intel_vsec_add_aux() is resource managed, no explicit
* delete is required on error or on module unload. * delete is required on error or on module unload.
* feature_vsec_dev memory is also freed as part of device * feature_vsec_dev and res memory are also freed as part of
* delete. * device deletion.
*/ */
return intel_vsec_add_aux(vsec_dev->pcidev, &vsec_dev->auxdev.dev, return intel_vsec_add_aux(vsec_dev->pcidev, &vsec_dev->auxdev.dev,
feature_vsec_dev, feature_id_name); feature_vsec_dev, feature_id_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment