anv: gem-stubs: return a valid fd got anv_gem_userptr()
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 25 Sep 2019 13:26:52 +0000 (16:26 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 25 Sep 2019 19:02:51 +0000 (22:02 +0300)
commitda2d67fc3b04128f3dad08c1002b260841312420
treed3fb647c25ddf142af4e6bf14fcafae5c407a11a
parent2d8f77db839cb3a83f0b1575a028d5aa4258c322
anv: gem-stubs: return a valid fd got anv_gem_userptr()

Fixes invalid close(-1) in the unit tests.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_gem_stubs.c