projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
inetdevice: fixed signed integer overflow
[cascardo/linux.git]
/
include
/
linux
/
inetdevice.h
diff --git
a/include/linux/inetdevice.h
b/include/linux/inetdevice.h
index
0068708
..
0a21fbe
100644
(file)
--- a/
include/linux/inetdevice.h
+++ b/
include/linux/inetdevice.h
@@
-242,7
+242,7
@@
static inline void in_dev_put(struct in_device *idev)
static __inline__ __be32 inet_make_mask(int logmask)
{
if (logmask)
- return htonl(~((1<<(32-logmask))-1));
+ return htonl(~((1
U
<<(32-logmask))-1));
return 0;
}