[PATCH] net/ice: fix NULL dereference on ACL init failure
Bruce Richardson
bruce.richardson at intel.com
Fri Nov 6 14:26:19 CET 2026
On Fri, Nov 06, 2026 at 06:39:49AM +0000, Anurag Mandal wrote:
> If ice_acl_init() fails to allocate the ACL profile array,
> it leaves hw->acl_prof NULL.
> ice_flow_init() then fails and ice_dev_init() calls
> ice_flow_uninit(), where ice_acl_prof_free() dereferences
> the NULL array.
>
> Return early from ice_acl_prof_free() when the array was
> never allocated.
>
> Fixes: 40d466fa9f76 ("net/ice: support ACL filter in DCF")
> Fixes: 96b25c496aad ("net/ice: fix memzone leak after device init failure")
> Cc: stable at dpdk.org
>
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
> ---
> drivers/net/intel/ice/ice_acl_filter.c | 3 +++
> 1 file changed, 3 insertions(+)
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Applied to dpdk-next-net-intel.
Thanks,
/Bruce
More information about the stable
mailing list