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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.