aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChris Packham <[email protected]>2020-11-24 17:34:40 +1300
committerJakub Kicinski <[email protected]>2020-11-25 17:58:06 -0800
commit0fd5d79efa4a35c5b0944f7dc42b440d56af4b04 (patch)
treee7c16fdd4ae99b95e9f42f3ce9628c0c9f08ff10 /tools/perf/scripts/python
parent5c19bc8b57342768087d4ca2f3b29cb69e7dcdfb (diff)
net: dsa: mv88e6xxx: Handle error in serdes_get_regs
If the underlying read operation failed we would end up writing stale data to the supplied buffer. This would end up with the last successfully read value repeating. Fix this by only writing the data when we know the read was good. This will mean that failed values will return 0xffff. Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions