net:gue.h:Fix shifting signed 32-bit value by 31 bits problem
authorVandana BN <bnvandana@gmail.com>
Mon, 1 Jul 2019 14:16:10 +0000 (19:46 +0530)
committerDavid 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

index fdad41469b6521bed2d666cf1cf7925579ec8111..3a6595bfa641bdba4c7e74217eb4d9d0f69f41a2 100644 (file)
@@ -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(1U << 31)
 #define GUE_PLEN_REMCSUM       4
 
 #define GUE_PFLAGS_ALL (GUE_PFLAG_REMCSUM)