Re: [PATCH net v4 3/4] net: phy: dp83640: clear state after PTP registration failure

Andrew Lunn <[email protected]>
Newsgroups org.kernel.vger.netdev
Message-ID <[email protected]>
On Fri, Aug 07, 2026 at 03:07:28PM +0800, [email protected] wrote:
> From: Xuanqiang Luo <[email protected]>
> 
> dp83640_probe() publishes its per-PHY state through phydev before
> registering the PTP clock. If registration fails, the private data is
> freed while phydev->mii_ts and phydev->priv still point to it, and
> default_timestamp remains set.
> 
> Clear the published PHY state and reset the PTP clock pointer before
> freeing the private data.
> 
> Fixes: 4715f65ffa05 ("net: Introduce a new MII time stamping interface.")
> Signed-off-by: Xuanqiang Luo <[email protected]>

Reviewed-by: Andrew Lunn <[email protected]>

    Andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.