Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ufs Widen before multiplying. Like -r1.21, but in th...



details:   https://anonhg.NetBSD.org/src/rev/d5f595cd6fe4
branches:  trunk
changeset: 346005:d5f595cd6fe4
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Jun 20 00:52:04 2016 +0000

description:
Widen before multiplying. Like -r1.21, but in the other similar case.

diffstat:

 sys/ufs/ufs/ufs_quota1.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2806acffd1f8 -r d5f595cd6fe4 sys/ufs/ufs/ufs_quota1.c
--- a/sys/ufs/ufs/ufs_quota1.c  Mon Jun 20 00:18:40 2016 +0000
+++ b/sys/ufs/ufs/ufs_quota1.c  Mon Jun 20 00:52:04 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_quota1.c,v 1.21 2014/11/25 19:48:24 christos Exp $ */
+/*     $NetBSD: ufs_quota1.c,v 1.22 2016/06/20 00:52:04 dholland Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993, 1995
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_quota1.c,v 1.21 2014/11/25 19:48:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota1.c,v 1.22 2016/06/20 00:52:04 dholland Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -806,7 +806,7 @@
        aiov.iov_base = (void *)&dq->dq_un.dq1_dqb;
        aiov.iov_len = sizeof (struct dqblk);
        auio.uio_resid = sizeof (struct dqblk);
-       auio.uio_offset = (off_t)(id * sizeof (struct dqblk));
+       auio.uio_offset = (off_t)id * sizeof (struct dqblk);
        auio.uio_rw = UIO_READ;
        UIO_SETUP_SYSSPACE(&auio);
        error = VOP_READ(dqvp, &auio, 0, ump->um_cred[type]);



Home | Main Index | Thread Index | Old Index