| commit | 2a047fcfcc3dcd84517f7efee6cd8a9ff60ac0a3 | [log] [tgz] |
|---|---|---|
| author | Jordan Crouse <jcrouse@codeaurora.org> | Tue Oct 01 11:41:54 2013 -0600 |
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Jan 15 23:40:57 2014 -0800 |
| tree | ffef9cc970f353590d4330630e6185377a67d04a | |
| parent | 8ac32db3842bebe743c9585206bc9306214f51cf [diff] |
msm: kgsl: Change an overflow check to be "smart" compiler proof In its infinite wisdom, GCC will optimize out this overflow check: if ((gpuaddr + size) < gpuaddr) Which might totally make sense for the compiler but it doesn't do us a bit of good. Replace the existing overflow check with something that GCC can't ignore. CRs-fixed: 544025 Change-Id: Ic0dedbad921545a01d5fe80a20c3f2f4f86ef641 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>