summaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>1998-12-15 23:46:59 +0000
committerEivind Eklund <eivind@FreeBSD.org>1998-12-15 23:46:59 +0000
commitaf00b35dfe92ad71de1c59b5b1a4d3e917a7e777 (patch)
tree37c34896cacd4ecf9b36a97b36dd73490918f915 /sys/miscfs
parent73df45e2284af72f657a6afc8fc570ab61589ca4 (diff)
Notes
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/devfs/devfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c
index de5284224ee2..e6857d84268e 100644
--- a/sys/miscfs/devfs/devfs_vnops.c
+++ b/sys/miscfs/devfs/devfs_vnops.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: devfs_vnops.c,v 1.62 1998/10/31 15:31:23 peter Exp $
+ * $Id: devfs_vnops.c,v 1.63 1998/12/07 21:58:30 archie Exp $
*/
@@ -1529,11 +1529,11 @@ devfs_write( struct vop_write_args *ap)
bp = getblk(vp, bn, bsize, 0, 0);
else
error = bread(vp, bn, bsize, NOCRED, &bp);
- n = min(n, bsize - bp->b_resid);
if (error) {
brelse(bp);
return (error);
}
+ n = min(n, bsize - bp->b_resid);
error = uiomove((char *)bp->b_data + on, n, uio);
if (n + on == bsize)
bawrite(bp);