intel/blorp: Fix possible NULL pointer dereferencing
authorVadym Shovkoplias <vadym.shovkoplias@globallogic.com>
Mon, 27 Nov 2017 10:15:13 +0000 (12:15 +0200)
committerAndres Gomez <agomez@igalia.com>
Thu, 30 Nov 2017 14:20:05 +0000 (16:20 +0200)
commitcdb3eb7174f84f3200408c4b43c819fb093da9c6
tree8e05684bcb7e0e2830aee859b9d2f98fa0c86b0e
parentfaccbaf3faf9a7cdcda3e4032fafd0f6064459bd
intel/blorp: Fix possible NULL pointer dereferencing

Fix incomplete check of input params in blorp_surf_convert_to_uncompressed()
which can lead to NULL pointer dereferencing.

Fixes: 5ae8043fed2 ("intel/blorp: Add an entrypoint for doing
bit-for-bit copies")
Fixes: f395d0abc83 ("intel/blorp: Internally expose
surf_convert_to_uncompressed")
Reviewed-by: Emil Velikov <emli.velikov@collabora.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
src/intel/blorp/blorp_blit.c