Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ufs CID 977076: Widen before multiply.



details:   https://anonhg.NetBSD.org/src/rev/3753a9925058
branches:  trunk
changeset: 334001:3753a9925058
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Nov 25 19:48:24 2014 +0000

description:
CID 977076: Widen before multiply.

diffstat:

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

diffs (27 lines):

diff -r 0e510456c8b1 -r 3753a9925058 sys/ufs/ufs/ufs_quota1.c
--- a/sys/ufs/ufs/ufs_quota1.c  Tue Nov 25 19:09:13 2014 +0000
+++ b/sys/ufs/ufs/ufs_quota1.c  Tue Nov 25 19:48:24 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_quota1.c,v 1.20 2014/05/24 16:34:04 christos Exp $ */
+/*     $NetBSD: ufs_quota1.c,v 1.21 2014/11/25 19:48:24 christos 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.20 2014/05/24 16:34:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota1.c,v 1.21 2014/11/25 19:48:24 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -860,7 +860,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)(dq->dq_id * sizeof (struct dqblk));
+       auio.uio_offset = (off_t)dq->dq_id * sizeof (struct dqblk);
        auio.uio_rw = UIO_WRITE;
        UIO_SETUP_SYSSPACE(&auio);
        error = VOP_WRITE(dqvp, &auio, 0, dq->dq_ump->um_cred[dq->dq_type]);



Home | Main Index | Thread Index | Old Index