[IPX]: Missing memset()'s in route and interface creation.

parent 73022809
...@@ -249,6 +249,7 @@ static struct atalk_iface *atif_add_device(struct net_device *dev, ...@@ -249,6 +249,7 @@ static struct atalk_iface *atif_add_device(struct net_device *dev,
if (!iface) if (!iface)
goto out; goto out;
memset(iface, 0, sizeof(*iface));
dev_hold(dev); dev_hold(dev);
iface->dev = dev; iface->dev = dev;
dev->atalk_ptr = iface; dev->atalk_ptr = iface;
...@@ -580,6 +581,7 @@ static int atrtr_create(struct rtentry *r, struct net_device *devhint) ...@@ -580,6 +581,7 @@ static int atrtr_create(struct rtentry *r, struct net_device *devhint)
retval = -ENOBUFS; retval = -ENOBUFS;
if (!rt) if (!rt)
goto out; goto out;
memset(rt, 0, sizeof(*rt));
rt->next = atalk_routes; rt->next = atalk_routes;
atalk_routes = rt; atalk_routes = rt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment