i965: Check calloc return value in gather_statistics_results()
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Thu, 8 May 2014 13:19:51 +0000 (16:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 Jun 2014 12:37:14 +0000 (15:37 +0300)
commit375943bc0a99bec6e4d07b07acd0e9004b2a9ea0
tree9d2b81b97b72f24a346787ba18a2e2a4c1c1d24c
parent9a8acafa47558cafeb37f80f4b30061ac1962c69
i965: Check calloc return value in gather_statistics_results()

Check calloc return value and report on error, also later skip
results handling if there was no memory to store results to.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_performance_monitor.c