Kai Huang 4692bc775d 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
2021-06-15 18:03:45 +02:00
..
2020-11-24 16:47:49 +01:00
2021-04-28 15:50:24 -07:00
2021-04-26 15:10:25 -07:00
2021-03-15 16:24:59 +01:00
2021-03-18 15:31:53 +01:00
2021-03-18 15:31:53 +01:00
2021-03-15 16:24:59 +01:00
2019-11-12 16:21:15 +01:00
2021-03-18 15:31:53 +01:00
2019-11-12 16:21:15 +01:00
2021-03-18 15:31:53 +01:00
2021-02-21 13:31:43 -08:00
2020-08-20 13:12:58 +02:00
2021-03-18 15:31:53 +01:00
2020-06-11 15:54:31 -07:00
2020-07-27 14:31:07 -04:00
2021-03-18 15:31:53 +01:00
2020-08-04 14:47:45 -07:00