PERFORCE change 17045 for review
Chris Vance
cvance at freebsd.org
Wed Sep 4 15:47:37 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17045
Change 17045 by cvance at cvance_laptop on 2002/09/04 08:47:29
Add new goto target for MAC code in mmap. On error, make sure to
grab Giant before possibly calling vput()
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/vm/vm_mmap.c#14 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/vm/vm_mmap.c#14 (text+ko) ====
@@ -450,7 +450,7 @@
(struct vnode *)handle, 1);
if ((prot & macmaxprot) != prot) {
error = EACCES;
- goto done;
+ goto macdone;
}
maxprot &= macmaxprot;
}
@@ -462,6 +462,9 @@
#endif /* MAC */
error = vm_mmap(&vms->vm_map, &addr, size, prot, maxprot,
flags, handle, pos);
+#ifdef MAC
+macdone:
+#endif
mtx_lock(&Giant);
if (error == 0)
td->td_retval[0] = (register_t) (addr + pageoff);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list