Commit c00d56fe authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher

drm/amd/display: add missing mod_vmid destructor

mod_vmid is missing a destructor.
Signed-off-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1a7d296d
......@@ -41,4 +41,6 @@ struct mod_vmid *mod_vmid_create(
unsigned int num_vmid,
struct dc_virtual_addr_space_config *va_config);
void mod_vmid_destroy(struct mod_vmid *mod_vmid);
#endif /* MOD_VMID_H_ */
......@@ -156,3 +156,12 @@ struct mod_vmid *mod_vmid_create(
fail_dc_null:
return NULL;
}
void mod_vmid_destroy(struct mod_vmid *mod_vmid)
{
if (mod_vmid != NULL) {
struct core_vmid *core_vmid = MOD_VMID_TO_CORE(mod_vmid);
kfree(core_vmid);
}
}
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