Module Name:    src
Committed By:   christos
Date:           Tue Nov 25 19:48:24 UTC 2014

Modified Files:
        src/sys/ufs/ufs: ufs_quota1.c

Log Message:
CID 977076: Widen before multiply.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/ufs/ufs/ufs_quota1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/ufs/ufs_quota1.c
diff -u src/sys/ufs/ufs/ufs_quota1.c:1.20 src/sys/ufs/ufs/ufs_quota1.c:1.21
--- src/sys/ufs/ufs/ufs_quota1.c:1.20	Sat May 24 12:34:04 2014
+++ src/sys/ufs/ufs/ufs_quota1.c	Tue Nov 25 14:48:24 2014
@@ -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 @@ dq1sync(struct vnode *vp, struct dquot *
 	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]);

Reply via email to