Re: Re: [BUG] x86/sgx: missing kref_put() in sgx_encl_mm_add() error path

Dingisoul <[email protected]> Mon, 30 Mar 2026 17:25:55 -0400
Newsgroups org.kernel.vger.linux-sgx
Message-ID <[email protected]>
Hi Dave,

Thanks for the confirmation and the suggestion. 

Moving the kref_get() after the successful mmu_notifier 
registration looks great and keeps the error path clean. 

Should we send a formal patch?