projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c483e02
)
icmpv6_filter: fix "_hdr" incorrectly being a pointer
author
Werner Almesberger
<werner@almesberger.net>
Fri, 2 Aug 2013 13:51:19 +0000
(10:51 -0300)
committer
David S. Miller
<davem@davemloft.net>
Fri, 2 Aug 2013 22:15:50 +0000
(15:15 -0700)
"_hdr" should hold the ICMPv6 header while "hdr" is the pointer to it.
This worked by accident.
Signed-off-by: Werner Almesberger <werner@almesberger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/raw.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/raw.c
b/net/ipv6/raw.c
index c45f7a5c36e96f98487ca194c5f08e5d0f931852..164fb5f58641fe5670af7b9e286a23d6978fe20c 100644
(file)
--- a/
net/ipv6/raw.c
+++ b/
net/ipv6/raw.c
@@
-108,7
+108,7
@@
found:
*/
static int icmpv6_filter(const struct sock *sk, const struct sk_buff *skb)
{
- struct icmp6hdr
*
_hdr;
+ struct icmp6hdr _hdr;
const struct icmp6hdr *hdr;
hdr = skb_header_pointer(skb, skb_transport_offset(skb),