diff options
author | Vandana BN <bnvandana@gmail.com> | 2019-07-01 19:46:10 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-01 10:58:23 -0700 |
commit | 88405680ec57c35f5886dbb81b3f6f638f74f40d (patch) | |
tree | 84624c56405fbef723d3a8c8e65313e4773cfc81 /include/net | |
parent | 40f6a2cb9cfc5da713f745b23bcc2c6761e5eb5e (diff) | |
download | linux-stable-88405680ec57c35f5886dbb81b3f6f638f74f40d.tar.gz linux-stable-88405680ec57c35f5886dbb81b3f6f638f74f40d.tar.bz2 linux-stable-88405680ec57c35f5886dbb81b3f6f638f74f40d.zip |
net:gue.h:Fix shifting signed 32-bit value by 31 bits problem
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/gue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/gue.h b/include/net/gue.h index fdad41469b65..3a6595bfa641 100644 --- 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(1U << 31) #define GUE_PLEN_REMCSUM 4 #define GUE_PFLAGS_ALL (GUE_PFLAG_REMCSUM) |