diff options
author | Dan Carpenter <[email protected]> | 2023-01-18 13:28:21 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-01-19 18:57:16 -0800 |
commit | a76e88c2942575bc43ea88d0f05d245b26859130 (patch) | |
tree | ecb85181fb789ac7cf59787cfc9bc1438fdb53c7 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 482acbd68ea391b7a4033c90a50b9cf680afbe93 (diff) |
net: dsa: microchip: ptp: Fix error code in ksz_hwtstamp_set()
We want to return negative error codes here but the copy_to/from_user()
functions return the number of bytes remaining to be copied.
Fixes: c59e12a140fb ("net: dsa: microchip: ptp: Initial hardware time stamping support")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Link: https://lore.kernel.org/r/Y8fJxSvbl7UNVHh/@kili
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions