public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] lib/drmtest: Fix filedesc leak on gem_quiescent_gpu
@ 2013-11-26  7:26 Mika Kuoppala
  2013-12-04 12:23 ` Daniel Vetter
  0 siblings, 1 reply; 2+ messages in thread
From: Mika Kuoppala @ 2013-11-26  7:26 UTC (permalink / raw)
  To: intel-gfx

to not run out of filedescs as some tests call gem_quiescent_gpu
directly.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
 lib/drmtest.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index 15ed847..2e35644 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -166,6 +166,7 @@ void gem_quiescent_gpu(int fd)
 
 	gem_sync(fd, handle);
 	igt_drop_caches_set(DROP_RETIRE);
+	gem_close(fd, handle);
 }
 
 /**
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] lib/drmtest: Fix filedesc leak on gem_quiescent_gpu
  2013-11-26  7:26 [PATCH] lib/drmtest: Fix filedesc leak on gem_quiescent_gpu Mika Kuoppala
@ 2013-12-04 12:23 ` Daniel Vetter
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2013-12-04 12:23 UTC (permalink / raw)
  To: Mika Kuoppala; +Cc: intel-gfx

On Tue, Nov 26, 2013 at 09:26:17AM +0200, Mika Kuoppala wrote:
> to not run out of filedescs as some tests call gem_quiescent_gpu
> directly.
> 
> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>

Applied, thanks.
-Daniel

> ---
>  lib/drmtest.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/drmtest.c b/lib/drmtest.c
> index 15ed847..2e35644 100644
> --- a/lib/drmtest.c
> +++ b/lib/drmtest.c
> @@ -166,6 +166,7 @@ void gem_quiescent_gpu(int fd)
>  
>  	gem_sync(fd, handle);
>  	igt_drop_caches_set(DROP_RETIRE);
> +	gem_close(fd, handle);
>  }
>  
>  /**
> -- 
> 1.7.9.5
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-04 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26  7:26 [PATCH] lib/drmtest: Fix filedesc leak on gem_quiescent_gpu Mika Kuoppala
2013-12-04 12:23 ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox