msm: kgsl: Cast perfcounter query count to an unsigned int (CVE-2016-2062)
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. Change-Id: I743d50234780a1a6e9495c3911a83e3624a0347d Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/231414 Reviewed-by:shunmin_wang <shunmin_wang@asus.com> Tested-by:
shunmin_wang <shunmin_wang@asus.com>
Please register or sign in to comment