gallium/hud: prevent NULL pointer dereference with pipe_query functions
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 24 Jun 2015 19:11:27 +0000 (21:11 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 28 Jun 2015 07:49:03 +0000 (09:49 +0200)
commitb4b4406e1e8dcf577551087cc6eb068e5303efdf
tree0e4ae13f3d84dede5eb653d9b5e92f8b21bd1b6b
parenta98600b0ebdfc8481c168aae6c5670071e22fc29
gallium/hud: prevent NULL pointer dereference with pipe_query functions

The HUD doesn't check if query_create() fails and it calls other
pipe_query functions with NULL pointer instead of a valid query object.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/hud/hud_driver_query.c