Re: [PATCH v2 net] sfc: fix potential memory leak in efx_mae_process_mport()

From
Abdun Nihaal <hidden>
Date
2025-10-24 14:36:58
Also in
lkml
Reply to
Jacob Keller, 2025-10-24
On Thu, Oct 23, 2025 at 05:48:12PM -0700, Jacob Keller wrote:
Why not make the caller responsible for freeing desc on failure?
I put the free inside because another function efx_mae_add_mport 
called by efx_mae_process_mport was freeing desc on failure, so I
followed the same style of code, but yes making the caller responsible
would be more cleaner. I'll send a revised patch.
Thread (6 messages) 6 messages, 4 authors, last reply 2025-10-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help