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

Bruce Richardson bruce.richardson at intel.com
Tue Oct 6 16:00:49 CEST 2026


On Tue, Oct 06, 2026 at 11:57:33AM +0200, Burakov, Anatoly wrote:
> 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>
> 
Applied to dpdk-next-net-intel.

Thanks,
/Bruce


More information about the dev mailing list