From b59e2127f21675e88c58a4dd924bc55eeb83c7a6 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Mon, 28 Apr 2014 15:53:04 -0400 Subject: [PATCH] 4809 NANOSEC should be 'long long' to avoid integer overflow bugs 4810 spa_async_tasks_pending suffers from an integer overflow bug 4811 in.mpathd: tv2ns suffers from an integer overflow bug Reviewed by: Marcel Telka Reviewed by: Dan McDonald Approved by: Robert Mustacchi --- usr/src/uts/common/sys/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/uts/common/sys/time.h b/usr/src/uts/common/sys/time.h index 9fc4704860..eba6cb5277 100644 --- a/usr/src/uts/common/sys/time.h +++ b/usr/src/uts/common/sys/time.h @@ -234,7 +234,7 @@ struct itimerval32 { #define SEC 1 #define MILLISEC 1000 #define MICROSEC 1000000 -#define NANOSEC 1000000000 +#define NANOSEC 1000000000LL #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC)) #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC)) -- 2.11.4.GIT