diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-12-12 18:56:53 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-02-04 15:25:40 +0000 |
commit | 7b5a81858193d775c08892b5072019488d7cdb0f (patch) | |
tree | 6dd1ce3a54806e5e31cb60e4197db7aac1db4faa /lib/ioctl_wrappers.c | |
parent | 9cc2b1336b60392b834e099ce3a3eb8ea723e29a (diff) |
igt/gem_reset_stats: Convert from stop-rings to real hang injection
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/ioctl_wrappers.c')
-rw-r--r-- | lib/ioctl_wrappers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index fa44080e..6b9d00ae 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -291,6 +291,8 @@ void gem_close(int fd, uint32_t handle) { struct drm_gem_close close_bo; + igt_assert_neq(handle, 0); + memset(&close_bo, 0, sizeof(close_bo)); close_bo.handle = handle; do_ioctl(fd, DRM_IOCTL_GEM_CLOSE, &close_bo); |