On Mon, Aug 26, 2019 at 02:31:54PM +0000, Ayoun, Serge wrote: > Not sure about this one since this 'if' should never happen, unless there is a bug > Not clear if the caller (sgx_encl_ewb) will handle -EINVAL properly. > Maybe would be better to issue some warning message or BUG_ON The caller issues warning. /Jarkko