aboutsummaryrefslogtreecommitdiffstats
path: root/module/spl
diff options
context:
space:
mode:
authorRicardo M. Correia <[email protected]>2009-07-14 15:23:25 -0700
committerBrian Behlendorf <[email protected]>2009-07-14 15:23:25 -0700
commite004f04c8b110ee598baa6b86148c8148d737a44 (patch)
tree3b7c95529095597ec923b8b06360c916a1c59300 /module/spl
parentb11b08ed641b8c677b529e108c2b28dc0183d34c (diff)
Prevent integer overflow after ~164 days of uptime.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/spl')
-rw-r--r--module/spl/spl-time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/spl/spl-time.c b/module/spl/spl-time.c
index 1e9671e83..2973ae82d 100644
--- a/module/spl/spl-time.c
+++ b/module/spl/spl-time.c
@@ -62,7 +62,7 @@ __gethrtime(void) {
#else
uint64_t j = get_jiffies_64();
- return (hrtime_t)(j * NSEC_PER_SEC / HZ);
+ return (hrtime_t)(j * (NSEC_PER_SEC / HZ));
#endif
}
EXPORT_SYMBOL(__gethrtime);