diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2024-12-05 17:55:19 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-08 04:56:46 +0300 |
commit | 43a4166349a254446e7a3db65f721c6a30daccf3 (patch) | |
tree | 716da66e5c8df5acc5edd1db009036a01de68279 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b454abfab52543c44b581afc807b9f97fc1e7a3a (diff) | |
download | linux-43a4166349a254446e7a3db65f721c6a30daccf3.tar.xz |
net: mscc: ocelot: perform error cleanup in ocelot_hwstamp_set()
An unsupported RX filter will leave the port with TX timestamping still
applied as per the new request, rather than the old setting. When
parsing the tx_type, don't apply it just yet, but delay that until after
we've parsed the rx_filter as well (and potentially returned -ERANGE for
that).
Similarly, copy_to_user() may fail, which is a rare occurrence, but
should still be treated by unwinding what was done.
Fixes: 96ca08c05838 ("net: mscc: ocelot: set up traps for PTP packets")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20241205145519.1236778-6-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions