提交 c00d56fe 编写于 作者: D Dmytro Laktyushkin 提交者: Alex Deucher

drm/amd/display: add missing mod_vmid destructor

mod_vmid is missing a destructor.
Signed-off-by: NDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: NCharlene Liu <Charlene.Liu@amd.com>
Acked-by: NBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册