PERFORCE change 103968 for review

John Birrell jb at FreeBSD.org
Tue Aug 15 03:37:27 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=103968

Change 103968 by jb at jb_freebsd2 on 2006/08/15 03:37:15

	Change a 'copystr' to a 'copyout' since the destination is in
	user space and 'copystr' is only for kernel to kernel copies.
	
	Without this change, sun4v panics.

Affected files ...

.. //depot/projects/dtrace/src/sys/kern/vfs_mount.c#7 edit

Differences ...

==== //depot/projects/dtrace/src/sys/kern/vfs_mount.c#7 (text+ko) ====

@@ -697,10 +697,9 @@
 			    errmsg, 
 			    fsoptions->uio_iov[2 * errmsg_pos + 1].iov_len);
 		} else {
-			copystr(errmsg,
+			copyout(errmsg,
 			    fsoptions->uio_iov[2 * errmsg_pos + 1].iov_base,
-			    fsoptions->uio_iov[2 * errmsg_pos + 1].iov_len,
-			    NULL);
+			    fsoptions->uio_iov[2 * errmsg_pos + 1].iov_len);
 		} 
 	}
 


More information about the p4-projects mailing list