Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375538
b: refs/heads/master
c: 5dbd506
h: refs/heads/master
v: v3
  • Loading branch information
Amerigo Wang authored and David S. Miller committed May 12, 2013
1 parent fb2650f commit b91aec4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d34710e3e30fee26f4b0617b5458aa1c48236bb0
refs/heads/master: 5dbd5068430b8bd1c19387d46d6c1a88b261257f
2 changes: 2 additions & 0 deletions trunk/net/ipv6/ip6_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,7 @@ static int ip6gre_tunnel_ioctl(struct net_device *dev,
}
if (t == NULL)
t = netdev_priv(dev);
memset(&p, 0, sizeof(p));
ip6gre_tnl_parm_to_user(&p, &t->parms);
if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p)))
err = -EFAULT;
Expand Down Expand Up @@ -1128,6 +1129,7 @@ static int ip6gre_tunnel_ioctl(struct net_device *dev,
if (t) {
err = 0;

memset(&p, 0, sizeof(p));
ip6gre_tnl_parm_to_user(&p, &t->parms);
if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p)))
err = -EFAULT;
Expand Down

0 comments on commit b91aec4

Please sign in to comment.