intel: Don't leak the test page in an has_userptr() error path
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 17 Sep 2014 12:33:45 +0000 (13:33 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Fri, 19 Sep 2014 13:36:35 +0000 (14:36 +0100)
commit77dce9a012c2bb9d152fe32458f17d3d5fc715a7
tree33566ee3df11dc262a5a0da9a7d1290bd648f783
parent0fa1dbf6469dfd7b8cac4d924235b149ee83daf1
intel: Don't leak the test page in an has_userptr() error path

When handling the error on GEM_CLOSE, we weren't freeing the allocated
page. Plug that.

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
intel/intel_bufmgr_gem.c