diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2019-09-03 14:06:54 +0000 |
---|---|---|
committer | Alexander Pyhalov <apyhalov@gmail.com> | 2019-12-18 17:42:45 +0300 |
commit | e95fe2787bf46c4044b445714824cdbb60be6600 (patch) | |
tree | bd322c0a4feae1143dad25d9f6d43b6c6bc0df41 /usr/src/uts/intel/io | |
parent | 714f5e332aaa80ebc2e2bd47d8638075dd43b7ca (diff) | |
download | illumos-gfx-drm-e95fe2787bf46c4044b445714824cdbb60be6600.tar.gz |
gfx-drm: NULL pointer issues
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src/uts/intel/io')
-rw-r--r-- | usr/src/uts/intel/io/i915/i915_gem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/intel/io/i915/i915_gem.c b/usr/src/uts/intel/io/i915/i915_gem.c index 18d5af8..6bec5c7 100644 --- a/usr/src/uts/intel/io/i915/i915_gem.c +++ b/usr/src/uts/intel/io/i915/i915_gem.c @@ -813,7 +813,7 @@ i915_wait_seqno(struct intel_ring_buffer *ring, uint32_t seqno) return __wait_seqno(ring, seqno, atomic_read(&dev_priv->gpu_error.reset_counter), - interruptible, NULL); + interruptible, 0); } static int @@ -889,7 +889,7 @@ i915_gem_object_wait_rendering__nonblocking(struct drm_i915_gem_object *obj, reset_counter = atomic_read(&dev_priv->gpu_error.reset_counter); mutex_unlock(&dev->struct_mutex); - ret = __wait_seqno(ring, seqno, reset_counter, true, NULL); + ret = __wait_seqno(ring, seqno, reset_counter, true, 0); mutex_lock(&dev->struct_mutex); if (ret) return ret; @@ -1966,7 +1966,7 @@ i915_gem_wait_ioctl(DRM_IOCTL_ARGS) struct drm_i915_gem_wait *args = data; struct drm_i915_gem_object *obj; struct intel_ring_buffer *ring = NULL; - clock_t timeout = NULL; + clock_t timeout = 0; unsigned reset_counter; u32 seqno = 0; int ret = 0; @@ -3069,7 +3069,7 @@ i915_gem_ring_throttle(struct drm_device *dev, struct drm_file *file) if (seqno == 0) return 0; - ret = __wait_seqno(ring, seqno, reset_counter, true, NULL); + ret = __wait_seqno(ring, seqno, reset_counter, true, 0); if (ret == 0) test_set_timer(&dev_priv->mm.retire_timer, 0); |