lkml.org 
[lkml]   [2017]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 06/11] intel_sgx: driver for Intel Software Guard Extensions
On Mon, 13 Nov 2017, Jarkko Sakkinen wrote:

> +
> + secs_epc = sgx_alloc_page(0);

Use SGX_ALLOC_ATOMIC instead of 0 ?

> + if (IS_ERR(secs_epc)) {
> + ret = PTR_ERR(secs_epc);
> + goto out;
> + }

> +out:
> + if (encl)
> + kref_put(&encl->refcount, sgx_encl_release);
> + return ret;
> +}

Don't you need an sgx_free_page() somewhere here?



--
James Morris
<james.l.morris@oracle.com>

\
 
 \ /
  Last update: 2017-11-14 00:42    [W:0.333 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site