DragonFlyBSD Kernel Audit
DF-2164 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/linux_shmem.c b/sys/dev/drm/linux_shmem.c
--- a/sys/dev/drm/linux_shmem.c
+++ b/sys/dev/drm/linux_shmem.c
@@ -134,7 +134,7 @@
 	/* returning related vmas not yet supported */
 	td = curthread;
 	KKASSERT(vmas == NULL);
-	KKASSERT(td->td_proc == NULL);
+	KKASSERT(td->td_proc != NULL);
 	map = &td->td_proc->p_vmspace->vm_map;
 
 	if (gup_flags)