aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-06-09 12:52:12 +0300
committerDavid S. Miller <[email protected]>2021-06-09 14:10:38 -0700
commitaa3d020b22cb844ab7bdbb9e5d861a64666e2b74 (patch)
tree9f52540c7c797e6482a03676813c4fcdf8b98d33 /tools/perf/scripts/python/stackcollapse.py
parentdac8115290fe3787c1ce3502d46ee4f5e33036b8 (diff)
net: dsa: qca8k: fix an endian bug in qca8k_get_ethtool_stats()
The "hi" variable is a u64 but the qca8k_read() writes to the top 32 bits of it. That will work on little endian systems but it's a bit subtle. It's cleaner to make declare "hi" as a u32. We will still need to cast it when we shift it later on in the function but that's fine. Fixes: 7c9896e37807 ("net: dsa: qca8k: check return value of read functions correctly") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions