Cast to u_int64_t when computing callout argument, to avoid int overflow.

Fixes kern/12471.
This commit is contained in:
bouyer 2001-03-27 17:24:03 +00:00
parent d610c23da4
commit f099a26df2
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: adv.c,v 1.22 2001/03/08 06:49:49 thorpej Exp $ */
/* $NetBSD: adv.c,v 1.23 2001/03/27 17:24:03 bouyer Exp $ */
/*
* Generic driver for the Advanced Systems Inc. Narrow SCSI controllers
@ -375,7 +375,7 @@ adv_start_ccbs(sc)
if ((ccb->xs->xs_control & XS_CTL_POLL) == 0)
callout_reset(&ccb->xs->xs_callout,
(ccb->timeout * hz) / 1000,
((u_int64_t)ccb->timeout * (u_int64_t)hz) / 1000,
adv_timeout, ccb);
}
}