aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-01-02 17:54:20 +0000
committerGreg Kroah-Hartman <[email protected]>2018-01-09 17:00:13 +0100
commit551b9ee472147189f988a30cccc0ac918e939a0e (patch)
tree56648ac28c1ce81e701cdc217e417351cb2cea78 /tools/perf/scripts/python/export-to-postgresql.py
parent7dde60c06cff611b9f88676ef9e67365dc77b19a (diff)
slimbus: fix retries comparison to correctly identify failed allocation
Currently the check for too many retries fails because retries is actually -1 when the retry loop terminates if no pbuf can be allocated because of the post decrement on retries. Fix this by not comparing retries with zero but instead check if it is negative. Detected by CoverityScan, CID#1463143 ("Logically dead code") and CID#1463144 ("Dereference after null check") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions