summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-11-01 16:25:10 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-11-01 16:25:52 +0000
commit9e21c255e74128a16ef5c2dd4b1903d1d2c417eb (patch)
tree08da1ad07e44f9f9b26111c7bbf0839590f5248e /lib/igt_debugfs.c
parentb1945f8c46c1305dd882241711471dbea90f0c2b (diff)
lib: Don't forget to close the pipe ctl fd in igt_pipe_crc_reset()
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r--lib/igt_debugfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index dc4a0a2b..8311fd1e 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -232,6 +232,8 @@ void igt_pipe_crc_reset(void)
igt_pipe_crc_pipe_off(fd, PIPE_A);
igt_pipe_crc_pipe_off(fd, PIPE_B);
igt_pipe_crc_pipe_off(fd, PIPE_C);
+
+ close(fd);
}
void igt_pipe_crc_free(igt_pipe_crc_t *pipe_crc)