Re: [PATCH v4 07/12] intel_sgx: driver for Intel Software Guard Extensions

From: Jarkko Sakkinen
Date: Wed Oct 18 2017 - 11:21:32 EST


On Mon, Oct 16, 2017 at 10:18:50PM +0300, Jarkko Sakkinen wrote:
> +int sgx_encl_create(struct sgx_secs *secs)
> +{
> + struct sgx_pageinfo pginfo;
> + struct sgx_secinfo secinfo;
> + struct sgx_encl *encl;
> + struct sgx_epc_page *secs_epc;
> + struct vm_area_struct *vma;
> + void *secs_vaddr;
> + long ret;
> +
> + encl = sgx_encl_alloc(secs);
> + if (IS_ERR(secs))
> + return PTR_ERR(encl);

if (IS_ERR(encl))

/Jarkko