diff options
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index fe8ce3cd507..91baf10270c 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -4540,7 +4540,7 @@ i915_gem_bit_17_swizzle(struct drm_obj *obj) obj_priv->bit_17 == NULL) return; - while (i < page_count) { + for (i = 0; i < page_count; i++) { /* compare bit 17 with previous one (in case we swapped). * if they don't match we'll have to swizzle the page */ |