From e004f04c8b110ee598baa6b86148c8148d737a44 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Tue, 14 Jul 2009 15:23:25 -0700 Subject: Prevent integer overflow after ~164 days of uptime. Signed-off-by: Brian Behlendorf --- module/spl/spl-time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/spl') 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); -- cgit v1.2.3