[PATCH v1 03/12] net/ice/base: fix memory leak in HW profile handling
Bruce Richardson
bruce.richardson at intel.com
Fri Sep 5 17:08:04 CEST 2025
On Tue, Sep 02, 2025 at 06:26:53PM +0100, Anatoly Burakov wrote:
> From: Jacob Keller <jacob.e.keller at intel.com>
>
> The ice_flow_set_hw_prof() function allocates a params structure with
> ice_malloc. It uses this structure to hold some data temporarily while
> processing the hardware profile to set.
>
> Static analysis indicated that this memory is not released. Fix this
> function to free the memory upon exit.
>
> Fixes: 8ebb93942b2c ("net/ice/base: add function to set HW profile for raw flow")
> Cc: stable at dpdk.org
>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
> drivers/net/intel/ice/base/ice_flow.c | 4 ----
> 1 file changed, 4 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list