RE: [PATCH 1/2] net/mana: use a MR variable on the stack instead of allocating it

2024-02-07 Thread Long Li
> > From: Long Li > > > > The content of the MR is copied to the cache trees, it's not necessary > > to allocate a MR to do this. Use a variable on the stack instead. > > > > This also fixes the memory leak in the code where a MR is allocated > > but never freed. > > > > patch title describes wha

Re: [PATCH 1/2] net/mana: use a MR variable on the stack instead of allocating it

2024-02-07 Thread Ferruh Yigit
On 1/30/2024 1:24 AM, lon...@linuxonhyperv.com wrote: > From: Long Li > > The content of the MR is copied to the cache trees, it's not necessary to > allocate a MR to do this. Use a variable on the stack instead. > > This also fixes the memory leak in the code where a MR is allocated but > never

[PATCH 1/2] net/mana: use a MR variable on the stack instead of allocating it

2024-01-29 Thread longli
From: Long Li The content of the MR is copied to the cache trees, it's not necessary to allocate a MR to do this. Use a variable on the stack instead. This also fixes the memory leak in the code where a MR is allocated but never freed. Signed-off-by: Long Li --- drivers/net/mana/mr.c | 15 +++