commit | 76b8c5cc602eda19c91b842b02f84564c18e79a6 | [log] [tgz] |
---|---|---|
author | Jakob Sinclair <sinclair.jakob@openmailbox.org> | Mon Apr 25 09:03:52 2016 +0200 |
committer | Marek Olšák <marek.olsak@amd.com> | Thu Apr 28 11:33:38 2016 +0200 |
tree | 0b4a6b78863a780c2f6ead5cea1789aa4cb30148 | |
parent | 860210ccfc0a90a4635fc930cd323bc426db5991 [diff] |
radeonsi: check if value is negative Fixes a Coverity defect by adding checks to see if a value is negative before using it to index an array. By checking the value first it makes the code a bit safer but overall should not have a big impact. CID: 1355598 Signed-off-by: Jakob Sinclair <sinclair.jakob@openmailbox.org> Signed-off-by: Marek Olšák <marek.olsak@amd.com>