projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e2c433
)
ipv6: result of csum_fold() is already 16bit, no need to cast
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 27 Apr 2008 05:28:58 +0000
(22:28 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 27 Apr 2008 21:26:49 +0000
(14:26 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6mr.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/ip6mr.c
b/net/ipv6/ip6mr.c
index c8c6e33d116340d8f1a902893c5e183d6ab118e2..2de3c464fe75b4e3bf1a57fd148dcc739d123761 100644
(file)
--- a/
net/ipv6/ip6mr.c
+++ b/
net/ipv6/ip6mr.c
@@
-358,7
+358,7
@@
static int pim6_rcv(struct sk_buff *skb)
if (pim->type != ((PIM_VERSION << 4) | PIM_REGISTER) ||
(pim->flags & PIM_NULL_REGISTER) ||
(ip_compute_csum((void *)pim, sizeof(*pim)) != 0 &&
-
(u16)
csum_fold(skb_checksum(skb, 0, skb->len, 0))))
+ csum_fold(skb_checksum(skb, 0, skb->len, 0))))
goto drop;
/* check if the inner packet is destined to mcast group */