|
@@ -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;
|
|
@@ -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;
|