drm/i915: call kunmap_px on pt_vaddr
authorkettenis <kettenis@openbsd.org>
Tue, 26 Dec 2017 13:22:36 +0000 (13:22 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 26 Dec 2017 13:22:36 +0000 (13:22 +0000)
From Matthew Auld
44a7102484db0ddfa6f855b57ffe0566f739b55a in mainline linux

Pointed out by Martin Ziemer

sys/dev/pci/drm/i915/i915_gem_gtt.c

index d11c628..04df47a 100644 (file)
@@ -778,7 +778,7 @@ static void gen8_ppgtt_clear_pte_range(struct i915_address_space *vm,
                        num_entries--;
                }
 
-               kunmap_px(ppgtt, pt);
+               kunmap_px(ppgtt, pt_vaddr);
 
                pte = 0;
                if (++pde == I915_PDES) {