Commit da71754
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: 7349a74 ("net: ethernet: gianfar_ethtool: get phc index through drvdata")
Cc: [email protected] # 4.18
Cc: Yangbo Lu <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 70458f8 commit da71754
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
1478 | | - | |
| 1478 | + | |
1479 | 1479 | | |
| 1480 | + | |
| 1481 | + | |
1480 | 1482 | | |
1481 | 1483 | | |
1482 | 1484 | | |
| |||
0 commit comments