On Mon, Nov 02, 2026 at 08:10:37AM +0000, Anurag Mandal wrote:
> ice_acl_prof_init() allocates a flow segment to add the ACL profiles,
> but only frees it on the error path, so it leaks on every ACL engine
> init.
> 
> ice_flow_add_prof() copies the segments, so the buffer is only needed
> while adding the profiles.
> 
> Allocate it on the stack instead, which removes the need to free it.
> 
> Fixes: 40d466fa9f76 ("net/ice: support ACL filter in DCF")
> Cc: [email protected]
> 
> Signed-off-by: Anurag Mandal <[email protected]>
> ---
>  drivers/net/intel/ice/ice_acl_filter.c | 46 +++++++++++---------------
>  1 file changed, 20 insertions(+), 26 deletions(-)
> 
Acked-by: Bruce Richardson <[email protected]>

Reply via email to