[PATCH] net/ice: fix PHY capabilities buffer leak

Burakov, Anatoly anatoly.burakov at intel.com
Tue Oct 6 11:57:33 CEST 2026


On 9/30/2026 6:52 PM, Anurag Mandal wrote:
> ice_phy_conf_link() allocates the PHY capabilities buffer and only
> then validates hw->port_info.
> If hw->port_info is NULL,it returns directly without freeing
> PHY capabilities buffer causing the buffer leak.
> 
> This patch fixes the issue by moving the hw->port_info NULL check
> above the PHY capabilities buffer allocation.
> 
> Fixes: 36afbc269081 ("net/ice: support link speed change")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
> ---

Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>

-- 
Thanks,
Anatoly


More information about the dev mailing list