aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGrant Likely <[email protected]>2014-11-19 16:22:32 +0000
committerGrant Likely <[email protected]>2014-11-19 17:42:57 +0000
commitc1a2086e2d8c4eb4e8630ba752e911ec180dec67 (patch)
treea7234d01a8647f98e644e89a3b2675b2de4e1c30 /tools/perf/scripts/python/export-to-postgresql.py
parenta0e27f51ba8a04125c22a95c4d3e98297a7191de (diff)
of/selftest: Fix off-by-one error in removal path
The removal path for selftest data has an off by one error that causes the code to dereference beyond the end of the nodes[] array on the first pass through. The old code only worked by chance on a lot of platforms, but the bug was recently exposed on aarch64. The fix is simple. Decrement the node count before dereferencing, not after. Reported-by: Kevin Hilman <[email protected]> Cc: Rob Herring <[email protected]> Cc: Gaurav Minocha <[email protected]> Cc: <[email protected]> # v3.17+
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions