Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 12:12:15 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/i915: i915_vma.c

Log Message:
i915: Fix typo: = is not +.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.c
diff -u src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.c:1.10 src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.c:1.11
--- src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.c:1.10	Sun Dec 19 12:09:58 2021
+++ src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.c	Sun Dec 19 12:12:15 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: i915_vma.c,v 1.10 2021/12/19 12:09:58 riastradh Exp $	*/
+/*	$NetBSD: i915_vma.c,v 1.11 2021/12/19 12:12:15 riastradh Exp $	*/
 
 /*
  * Copyright © 2016 Intel Corporation
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_vma.c,v 1.10 2021/12/19 12:09:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_vma.c,v 1.11 2021/12/19 12:12:15 riastradh Exp $");
 
 #include <linux/sched/mm.h>
 #include <drm/drm_gem.h>
@@ -1206,7 +1206,7 @@ void i915_vma_revoke_mmap(struct i915_vm
 	paddr_t pa = i915->ggtt.gmadr.start + vma->node.start;
 	vsize_t npgs = vma->size >> PAGE_SHIFT;
 	while (npgs --> 0)
-		pmap_pv_protect(pa = (npgs << PAGE_SHIFT), VM_PROT_NONE);
+		pmap_pv_protect(pa + (npgs << PAGE_SHIFT), VM_PROT_NONE);
 #else
 	node = &vma->mmo->vma_node;
 	vma_offset = vma->ggtt_view.partial.offset << PAGE_SHIFT;

Reply via email to