Bug 77750

Summary: Missing locking in ports/nvidia-driver
Product: Ports & Packages Reporter: frank
Component: Individual Port(s)Assignee: Alexey Dokuchaev <danfe>
Status: Closed FIXED    
Severity: Affects Only Me CC: danfe
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description frank 2005-02-19 22:00:29 UTC
 --ELM1108850248-16978-0_
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset=US-ASCII

Fix: Attached.


--ELM1108850248-16978-0_
Content-Transfer-Encoding: 7bit
Content-Type: text/x-patch
Content-Disposition: attachment; filename=nvidia-driver.diff
Content-Description: 



--ELM1108850248-16978-0_----llLWM0MbA9YSChB3FrZwloAizV1chy8PIwXTzCJeiNvNNLKB
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- /dev/null	Sat Feb 19 13:49:56 2005
+++ nvidia-driver/files/patch-src::nvidia_subr.c	Sat Feb 19 13:23:34 2005
@@ -0,0 +1,18 @@
+--- 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;
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2005-02-20 08:17:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danfe

Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77750 

Adding to audit trail from misfiled PR ports/77829:

Date: Mon, 21 Feb 2005 05:46:19 +0000
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2005-02-24 05:29:24 UTC
State Changed
From-To: open->closed

Committed, thanks!