diff options
author | Johan Hovold <johan@kernel.org> | 2025-07-25 19:12:11 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-30 18:02:47 -0700 |
commit | da717540acd34e5056e3fa35791d50f6b3303f55 (patch) | |
tree | 0fe990c7b1c48372457e0f052455c61fb773f93d /scripts/gdb/linux/xarray.py | |
parent | 70458f8a6b44daf3ad39f0d9b6d1097c8a7780ed (diff) |
net: gianfar: fix device leak when querying time stamp info
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: 7349a74ea75c ("net: ethernet: gianfar_ethtool: get phc index through drvdata")
Cc: stable@vger.kernel.org # 4.18
Cc: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250725171213.880-4-johan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions