freebsd-ports/x11/nvidia-driver/files/6113-patch-src::nvidia_subr.c
Alexey Dokuchaev b9159074e4 Stop patching nvidia_subr.c when building version 7174 of driver, correct
locking is already there.  Bump PORTREVISION.

This should fix recursive panics reported on 5.4-STABLE.

Reported by:	green
Submitted by:	sam
Reviewed by:	alc, dfr
2005-06-15 09:17:40 +00:00

18 lines
442 B
C

--- src/nvidia_subr.c.orig Sat Feb 19 13:19:54 2005
+++ src/nvidia_subr.c Sat Feb 19 13:22:47 2005
@@ -1115,10 +1115,15 @@
#if __FreeBSD_version < 500000
vm_page_wire(m);
+#else
+ VM_OBJECT_LOCK(m->object);
#endif
vm_page_lock_queues();
vm_page_wakeup(m);
vm_page_unlock_queues();
+#if __FreeBSD_version >= 500000
+ VM_OBJECT_UNLOCK(m->object);
+#endif
}
at->object = object;