diff options
author | Joe Kniss <djmk@google.com> | 2017-06-29 11:54:22 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-07-07 11:34:15 -0700 |
commit | 9e5d12a9d5133cd1709af821680fe6161b7593ba (patch) | |
tree | e42d0cc6d540fad82315bd5e0bb81891e38a122a | |
parent | 3909dc011bf32c13858fb80c33a3cce68769cb26 (diff) |
call drv_gem_bo_destroy from i915_bo_import
... when returning on error to close open gem handles.
BUG=chromium:738113
TEST=graphicsSanity on cyan
Change-Id: I19e30abc57349655b1f1c28d38aee67a39482cc6
Reviewed-on: https://chromium-review.googlesource.com/556402
Commit-Ready: Joe Kniss <djmk@google.com>
Tested-by: Joe Kniss <djmk@google.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
-rw-r--r-- | i915.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -349,6 +349,7 @@ static int i915_bo_import(struct bo *bo, struct drv_import_fd_data *data) ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_GET_TILING, &gem_get_tiling); if (ret) { + drv_gem_bo_destroy(bo); fprintf(stderr, "drv: DRM_IOCTL_I915_GEM_GET_TILING failed."); return ret; } |