Re: [PATCH] x86/sgx: Drop enclave reference on MMU notifier registration failure
Markus Elfring <[email protected]>
| Newsgroups | org.kernel.vger.linux-sgx,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
… > Drop the enclave reference before freeing the unpublished encl_mm. This > balances the acquisition without changing the successful registration > and teardown paths. … How do you think about to increase the application of scope-based resource management also for an improved implementation of a function like sgx_encl_mm_add()? Regards, Markus