diff options
author | Josef 'Jeff' Sipek <josef.sipek@nexenta.com> | 2014-04-28 15:53:04 -0400 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2014-04-29 08:42:11 -0700 |
commit | b59e2127f21675e88c58a4dd924bc55eeb83c7a6 (patch) | |
tree | 63a3fe887603355097b7c144603daa005e43334f /usr/src | |
parent | 6eedf6a58bb97d935b764a55719f82a486168fbb (diff) | |
download | illumos-gate-b59e2127f21675e88c58a4dd924bc55eeb83c7a6.tar.gz |
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 <marcel.telka@nexenta.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/sys/time.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |