[Intel-gfx] [PATCH] intel: Don't leak the test page in an has_userptr() error path

2014-09-19 Thread Damien Lespiau
On Fri, Sep 19, 2014 at 02:31:56PM +0100, Tvrtko Ursulin wrote: > > Reviewed-by: Tvrtko Ursulin > Thanks for the review, pushed the patch. -- Damien

[Intel-gfx] [PATCH] intel: Don't leak the test page in an has_userptr() error path

2014-09-19 Thread Tvrtko Ursulin
Reviewed-by: Tvrtko Ursulin On 09/17/2014 01:37 PM, Damien Lespiau wrote: > When handling the error on GEM_CLOSE, we weren't freeing the allocated > page. Plug that. > > Signed-off-by: Damien Lespiau > --- > intel/intel_bufmgr_gem.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-

[PATCH] intel: Don't leak the test page in an has_userptr() error path

2014-09-17 Thread Damien Lespiau
When handling the error on GEM_CLOSE, we weren't freeing the allocated page. Plug that. Signed-off-by: Damien Lespiau --- intel/intel_bufmgr_gem.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index f378e5c..ce35bd4 1