summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-10-11 02:48:49 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-10-11 02:48:49 +0000
commit4d6b6294eb95212a7904665c971b21bb2c1fb4e7 (patch)
tree142ef1f04ab03ba4205622f440b467c38d2ef285 /sys/dev/pci/drm
parent328423268b4a7838c85d271090c1a0643c7911b1 (diff)
drm/i915/gem: fix bitwise and logical AND mixup
From Jani Nikula 451c87d21db61e74379b31369a7e10f41bc3bbba in linux-6.6.y/6.6.55 394b52462020b6cceff1f7f47fdebd03589574f3 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/i915/gem/i915_gem_ttm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_ttm.c b/sys/dev/pci/drm/i915/gem/i915_gem_ttm.c
index 289e834e6cf..cbca8f52353 100644
--- a/sys/dev/pci/drm/i915/gem/i915_gem_ttm.c
+++ b/sys/dev/pci/drm/i915/gem/i915_gem_ttm.c
@@ -1167,7 +1167,7 @@ static vm_fault_t vm_fault_ttm(struct vm_fault *vmf)
GEM_WARN_ON(!i915_ttm_cpu_maps_iomem(bo->resource));
}
- if (wakeref & CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND)
+ if (wakeref && CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND != 0)
intel_wakeref_auto(&to_i915(obj->base.dev)->runtime_pm.userfault_wakeref,
msecs_to_jiffies_timeout(CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND));