diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-06-09 12:52:12 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-06-10 00:10:38 +0300 |
| commit | aa3d020b22cb844ab7bdbb9e5d861a64666e2b74 (patch) | |
| tree | 9f52540c7c797e6482a03676813c4fcdf8b98d33 /tools/perf/scripts/python/stackcollapse.py | |
| parent | dac8115290fe3787c1ce3502d46ee4f5e33036b8 (diff) | |
| download | linux-aa3d020b22cb844ab7bdbb9e5d861a64666e2b74.tar.xz | |
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 <dan.carpenter@oracle.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
