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