commit | 1d405cfe18b9adf8285e9ed247853e4317fdca72 | [log] [tgz] |
---|---|---|
author | Sunil Khatri <sunilkh@codeaurora.org> | Thu Apr 14 16:01:40 2016 -0700 |
committer | Siqi Lin <siqilin@google.com> | Thu Apr 14 16:17:54 2016 -0700 |
tree | f9d6561ed17fa0ca741cee45c2a440bb64d2de3e | |
parent | 57e4c4b0b17f5cd857c6f63d5db51882600f9917 [diff] |
msm: kgsl: Cast perfcounter query count to an unsigned int In adreno_perfcounter_query_group() make sure to cast the user passed count to an unsigned int before comparing it to the group count. Otherwise the user count could be interpeted as a signed int and hilarity ensues. Bug: 27364029 Change-Id: I570d30107f9e8bf9e48476c253efc4ea5f005722 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>