diff options
author | Kai Huang <kai.huang@intel.com> | 2021-06-15 22:16:39 +1200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-06-15 18:03:45 +0200 |
commit | 4692bc775d2180a937335ccba0edce557103d44a (patch) | |
tree | 64da667e5326aa89e5a8b382cdcd484cc9ce8d4e /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | efa165504943f2128d50f63de0c02faf6dcceb0d (diff) |
x86/sgx: Add missing xa_destroy() when virtual EPC is destroyed
xa_destroy() needs to be called to destroy a virtual EPC's page array
before calling kfree() to free the virtual EPC. Currently it is not
called so add the missing xa_destroy().
Fixes: 540745ddbc70 ("x86/sgx: Introduce virtual EPC for use by KVM guests")
Signed-off-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Tested-by: Yang Zhong <yang.zhong@intel.com>
Link: https://lkml.kernel.org/r/20210615101639.291929-1-kai.huang@intel.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions