Re: [PATCH 1/5] net: dpaa: fix device leak when querying time stamp info
From: Simon Horman
Date: Sat Jul 26 2025 - 16:48:49 EST
On Fri, Jul 25, 2025 at 07:12:09PM +0200, Johan Hovold wrote:
> Make sure to drop the reference to the ptp device taken by
> of_find_device_by_node() when querying the time stamping capabilities.
>
> Note that holding a reference to the ptp device does not prevent its
> driver data from going away.
>
> Fixes: 17ae0b0ee9db ("dpaa_eth: add the get_ts_info interface for ethtool")
> Cc: stable@xxxxxxxxxxxxxxx # 4.19
> Cc: Yangbo Lu <yangbo.lu@xxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>