Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 03:37:21 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 103968 for review
Message-ID:  <200608150337.k7F3bLo9089170@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103968

Change 103968 by jb@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);
 		} 
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608150337.k7F3bLo9089170>