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:
f901b64
)
gre: Initialise rtnl_link tunnel parameters properly
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 11 Oct 2008 19:20:15 +0000
(12:20 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sat, 11 Oct 2008 19:20:15 +0000
(12:20 -0700)
Brown paper bag error of calling memset with sizeof(p) instead
of sizeof(*p).
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ip_gre.c
b/net/ipv4/ip_gre.c
index 05ebce2881efc30924c95a4ae56fbd26ab817eb1..85c487b8572b726a365e869a92e8ad00669d76b7 100644
(file)
--- a/
net/ipv4/ip_gre.c
+++ b/
net/ipv4/ip_gre.c
@@
-1345,7
+1345,7
@@
out:
static void ipgre_netlink_parms(struct nlattr *data[],
struct ip_tunnel_parm *parms)
{
- memset(parms, 0, sizeof(parms));
+ memset(parms, 0, sizeof(
*
parms));
parms->iph.protocol = IPPROTO_GRE;