Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev widen the operation on the RHS as suggested in the PR.
details: https://anonhg.NetBSD.org/src/rev/9e2b7ebeb477
branches: trunk
changeset: 787139:9e2b7ebeb477
user: christos <christos%NetBSD.org@localhost>
date: Mon Jun 03 21:01:18 2013 +0000
description:
widen the operation on the RHS as suggested in the PR.
diffstat:
sys/dev/vnd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f9a21b6608ed -r 9e2b7ebeb477 sys/dev/vnd.c
--- a/sys/dev/vnd.c Mon Jun 03 20:44:01 2013 +0000
+++ b/sys/dev/vnd.c Mon Jun 03 21:01:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.223 2013/06/03 16:42:32 christos Exp $ */
+/* $NetBSD: vnd.c,v 1.224 2013/06/03 21:01:18 christos Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.223 2013/06/03 16:42:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.224 2013/06/03 21:01:18 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vnd.h"
@@ -2002,7 +2002,7 @@
memset(dg, 0, sizeof(*dg));
- dg->dg_secperunit = vnd->sc_geom.vng_nsectors *
+ dg->dg_secperunit = (int64_t)vnd->sc_geom.vng_nsectors *
vnd->sc_geom.vng_ntracks * vnd->sc_geom.vng_ncylinders;
dg->dg_secsize = vnd->sc_geom.vng_secsize;
dg->dg_nsectors = vnd->sc_geom.vng_nsectors;
Home |
Main Index |
Thread Index |
Old Index