projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
078a9b0
)
[PATCH] Make sure to always check upper bits of tv_nsec in timespec_valid.
author
Chris Wright
<chrisw@sous-sol.org>
Wed, 1 Feb 2006 03:10:23 +0000
(19:10 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 1 Feb 2006 03:30:25 +0000
(19:30 -0800)
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/time.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/time.h
b/include/linux/time.h
index 614dd8465839c215bebf815e1baaf11d6e399939..7b4dc36532bb192a1689dc84fb6da7fa97ab8dd7 100644
(file)
--- a/
include/linux/time.h
+++ b/
include/linux/time.h
@@
-48,7
+48,7
@@
extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec);
* Returns true if the timespec is norm, false if denorm:
*/
#define timespec_valid(ts) \
- (((ts)->tv_sec >= 0) && (((unsigned) (ts)->tv_nsec) < NSEC_PER_SEC))
+ (((ts)->tv_sec >= 0) && (((unsigned
long
) (ts)->tv_nsec) < NSEC_PER_SEC))
/*
* 64-bit nanosec type. Large enough to span 292+ years in nanosecond