projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40f6a2c
)
net:gue.h:Fix shifting signed 32-bit value by 31 bits problem
author
Vandana BN
<bnvandana@gmail.com>
Mon, 1 Jul 2019 14:16:10 +0000
(19:46 +0530)
committer
David S. Miller
<davem@davemloft.net>
Mon, 1 Jul 2019 17:58:23 +0000
(10:58 -0700)
Fix GUE_PFLAG_REMCSUM to use "U" cast to avoid shifting signed
32-bit value by 31 bits problem.
Signed-off-by: Vandana BN <bnvandana@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gue.h
patch
|
blob
|
history
diff --git
a/include/net/gue.h
b/include/net/gue.h
index fdad41469b6521bed2d666cf1cf7925579ec8111..3a6595bfa641bdba4c7e74217eb4d9d0f69f41a2 100644
(file)
--- a/
include/net/gue.h
+++ b/
include/net/gue.h
@@
-60,7
+60,7
@@
struct guehdr {
/* Private flags in the private option extension */
-#define GUE_PFLAG_REMCSUM htonl(1 << 31)
+#define GUE_PFLAG_REMCSUM htonl(1
U
<< 31)
#define GUE_PLEN_REMCSUM 4
#define GUE_PFLAGS_ALL (GUE_PFLAG_REMCSUM)