Re: [PATCH v2 1/2] net: mana: Fix memory leak in mana_gd_setup_irqs

2024-12-10 Thread Kalesh Anakkur Purayil
On Mon, Dec 9, 2024 at 11:28 PM Maxim Levitsky wrote: > > Commit 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores") > added memory allocation in mana_gd_setup_irqs of 'irqs' but the code > doesn't free this temporary array in the success path. > > This was caught by kmemleak. > > Fixes

Re: [PATCH v2 1/2] net: mana: Fix memory leak in mana_gd_setup_irqs

2024-12-09 Thread Michal Swiatkowski
On Tue, Dec 10, 2024 at 07:13:53AM +0100, Michal Swiatkowski wrote: > On Mon, Dec 09, 2024 at 12:57:50PM -0500, Maxim Levitsky wrote: > > Commit 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores") > > added memory allocation in mana_gd_setup_irqs of 'irqs' but the code > > doesn't free t

Re: [PATCH v2 1/2] net: mana: Fix memory leak in mana_gd_setup_irqs

2024-12-09 Thread Michal Swiatkowski
On Mon, Dec 09, 2024 at 12:57:50PM -0500, Maxim Levitsky wrote: > Commit 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores") > added memory allocation in mana_gd_setup_irqs of 'irqs' but the code > doesn't free this temporary array in the success path. > > This was caught by kmemleak. >

[PATCH v2 1/2] net: mana: Fix memory leak in mana_gd_setup_irqs

2024-12-09 Thread Maxim Levitsky
Commit 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores") added memory allocation in mana_gd_setup_irqs of 'irqs' but the code doesn't free this temporary array in the success path. This was caught by kmemleak. Fixes: 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores") Sign