[PATCH openEuler-5.10 32/90] x86/sgx: Return -EINVAL on a zero length buffer in sgx_ioc_enclave_add_pages()