Message ID | 20161215144959.31245-8-jarkko.sakkinen@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/platform/x86/intel_sgx_vma.c b/drivers/platform/x86/intel_sgx_vma.c index f848fd1..ad689bb 100644 --- a/drivers/platform/x86/intel_sgx_vma.c +++ b/drivers/platform/x86/intel_sgx_vma.c @@ -261,8 +261,6 @@ static struct sgx_encl_page *sgx_vma_do_fault(struct vm_area_struct *vma, list_add_tail(&entry->load_list, &encl->load_list); out: mutex_unlock(&encl->lock); - if (encl->flags & SGX_ENCL_SUSPEND) - free_flags |= SGX_FREE_SKIP_EREMOVE; if (epc_page) sgx_free_page(epc_page, encl, free_flags); if (secs_epc_page)