Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2013 09:48:02 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r246201 - projects/physbio/sys/kern
Message-ID:  <201302010948.r119m2GD056266@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Feb  1 09:48:01 2013
New Revision: 246201
URL: http://svnweb.freebsd.org/changeset/base/246201

Log:
  Fix the direction of the copying.

Modified:
  projects/physbio/sys/kern/subr_uio.c

Modified: projects/physbio/sys/kern/subr_uio.c
==============================================================================
--- projects/physbio/sys/kern/subr_uio.c	Fri Feb  1 07:48:13 2013	(r246200)
+++ projects/physbio/sys/kern/subr_uio.c	Fri Feb  1 09:48:01 2013	(r246201)
@@ -190,7 +190,7 @@ physcopyout(vm_paddr_t src, void *dst, s
 	uio.uio_offset = 0;
 	uio.uio_resid = len;
 	uio.uio_segflg = UIO_SYSSPACE;
-	uio.uio_rw = UIO_WRITE;
+	uio.uio_rw = UIO_READ;
 	for (i = 0; i < PHYS_PAGE_COUNT(len); i++, src += PAGE_SIZE)
 		m[i] = PHYS_TO_VM_PAGE(src);
 	return uiomove_fromphys(m, src & PAGE_MASK, len, &uio);



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