aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index a8768e2bbebc..f5094bb82d32 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -506,7 +506,7 @@ i915_gem_pread_ioctl(struct drm_device *dev, void *data,
506 return ret; 506 return ret;
507 507
508 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); 508 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
509 if (obj == NULL) { 509 if (&obj->base == NULL) {
510 ret = -ENOENT; 510 ret = -ENOENT;
511 goto unlock; 511 goto unlock;
512 } 512 }
@@ -949,7 +949,7 @@ i915_gem_pwrite_ioctl(struct drm_device *dev, void *data,
949 return ret; 949 return ret;
950 950
951 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); 951 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
952 if (obj == NULL) { 952 if (&obj->base == NULL) {
953 ret = -ENOENT; 953 ret = -ENOENT;
954 goto unlock; 954 goto unlock;
955 } 955 }
@@ -1045,7 +1045,7 @@ i915_gem_set_domain_ioctl(struct drm_device *dev, void *data,
1045 return ret; 1045 return ret;
1046 1046
1047 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); 1047 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
1048 if (obj == NULL) { 1048 if (&obj->base == NULL) {
1049 ret = -ENOENT; 1049 ret = -ENOENT;
1050 goto unlock; 1050 goto unlock;
1051 } 1051 }
@@ -1088,7 +1088,7 @@ i915_gem_sw_finish_ioctl(struct drm_device *dev, void *data,
1088 return ret; 1088 return ret;
1089 1089
1090 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); 1090 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
1091 if (obj == NULL) { 1091 if (&obj->base == NULL) {
1092 ret = -ENOENT; 1092 ret = -ENOENT;
1093 goto unlock; 1093 goto unlock;
1094 } 1094 }
@@ -1463,7 +1463,7 @@ i915_gem_mmap_gtt_ioctl(struct drm_device *dev, void *data,
1463 return ret; 1463 return ret;
1464 1464
1465 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); 1465 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
1466 if (obj == NULL) { 1466 if (&obj->base == NULL) {
1467 ret = -ENOENT; 1467 ret = -ENOENT;
1468 goto unlock; 1468 goto unlock;
1469 } 1469 }
@@ -3331,7 +3331,7 @@ i915_gem_pin_ioctl(struct drm_device *dev, void *data,
3331 return ret; 3331 return ret;
3332 3332
3333 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); 3333 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3334 if (obj == NULL) { 3334 if (&obj->base == NULL) {
3335 ret = -ENOENT; 3335 ret = -ENOENT;
3336 goto unlock; 3336 goto unlock;
3337 } 3337 }
@@ -3382,7 +3382,7 @@ i915_gem_unpin_ioctl(struct drm_device *dev, void *data,
3382 return ret; 3382 return ret;
3383 3383
3384 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); 3384 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3385 if (obj == NULL) { 3385 if (&obj->base == NULL) {
3386 ret = -ENOENT; 3386 ret = -ENOENT;
3387 goto unlock; 3387 goto unlock;
3388 } 3388 }
@@ -3419,7 +3419,7 @@ i915_gem_busy_ioctl(struct drm_device *dev, void *data,
3419 return ret; 3419 return ret;
3420 3420
3421 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); 3421 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3422 if (obj == NULL) { 3422 if (&obj->base == NULL) {
3423 ret = -ENOENT; 3423 ret = -ENOENT;
3424 goto unlock; 3424 goto unlock;
3425 } 3425 }
@@ -3497,7 +3497,7 @@ i915_gem_madvise_ioctl(struct drm_device *dev, void *data,
3497 return ret; 3497 return ret;
3498 3498
3499 obj = to_intel_bo(drm_gem_object_lookup(dev, file_priv, args->handle)); 3499 obj = to_intel_bo(drm_gem_object_lookup(dev, file_priv, args->handle));
3500 if (obj == NULL) { 3500 if (&obj->base == NULL) {
3501 ret = -ENOENT; 3501 ret = -ENOENT;
3502 goto unlock; 3502 goto unlock;
3503 } 3503 }