diff options
author | Mark Janes <[email protected]> | 2016-05-19 13:42:16 -0700 |
---|---|---|
committer | Mark Janes <[email protected]> | 2016-05-20 05:58:18 -0700 |
commit | a2d28ddc016af5e819f4b8648a64893b331095b2 (patch) | |
tree | cdcb3491803e0d7d6f92b97836990083adc56c0f /src/mesa/drivers/dri | |
parent | eb384daae896970e8164cdc60015b8c48c12f851 (diff) |
i965: Fix strerror error code sign
This trivial fix to error-handling corrects the sign of drm error
codes before passing them to strerror.
Identified by Coverity: CID1358581
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 1a0541a6c7c..076fa24cd6f 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -1111,7 +1111,7 @@ intel_detect_sseu(struct intel_screen *intelScreen) err_out: intelScreen->subslice_total = -1; intelScreen->eu_total = -1; - _mesa_warning(NULL, "Failed to query GPU properties (%s).\n", strerror(ret)); + _mesa_warning(NULL, "Failed to query GPU properties (%s).\n", strerror(-ret)); } static bool |