diff options
author | Colin Ian King <[email protected]> | 2018-08-21 12:55:19 +0100 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-10-03 20:24:54 -0400 |
commit | dfdb3be43ef1195c491e6c3760b922acb52e3575 (patch) | |
tree | 3894b00903746fbcb34fe77db254d086105038f0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f8fc924e088ef49da5ab99a227d176facf47c25c (diff) |
drm/msm: fix unsigned comparison with less than zero
The return from the call to _mixer_stages can be a negative error
code however this is being assigned to an unsigned variable 'stages'
hence the check is always false. Fix this by making 'stages' an
int.
Detected by Coccinelle ("Unsigned expression compared with zero:
stages < 0")
Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions