commit | 79ba99b5cc88ddae0d001bf2a91981335d93f965 | [log] [tgz] |
---|---|---|
author | Jordan Crouse <jcrouse@codeaurora.org> | Tue Oct 01 11:41:54 2013 -0600 |
committer | Jordan Crouse <jcrouse@codeaurora.org> | Wed Oct 16 09:15:56 2013 -0600 |
tree | 300d967daa4477ef45c8eeee1bb0307025b7d2e1 | |
parent | bb27c7ac3a3e727a1c507d9c9b66d452822cd368 [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>