Skip to content
Snippets Groups Projects
Commit c7f905f0 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

[ATALK]: Add missing dev_hold() to atrtr_create().

parent 88a66858
Branches
Tags
No related merge requests found
...@@ -573,6 +573,7 @@ static int atrtr_create(struct rtentry *r, struct net_device *devhint) ...@@ -573,6 +573,7 @@ static int atrtr_create(struct rtentry *r, struct net_device *devhint)
/* Fill in the routing entry */ /* Fill in the routing entry */
rt->target = ta->sat_addr; rt->target = ta->sat_addr;
dev_hold(devhint);
rt->dev = devhint; rt->dev = devhint;
rt->flags = r->rt_flags; rt->flags = r->rt_flags;
rt->gateway = ga->sat_addr; rt->gateway = ga->sat_addr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment