mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
[ATALK]: Add missing dev_hold() to atrtr_create().
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
88a6685825
commit
c7f905f0f6
@ -573,6 +573,7 @@ static int atrtr_create(struct rtentry *r, struct net_device *devhint)
|
||||
|
||||
/* Fill in the routing entry */
|
||||
rt->target = ta->sat_addr;
|
||||
dev_hold(devhint);
|
||||
rt->dev = devhint;
|
||||
rt->flags = r->rt_flags;
|
||||
rt->gateway = ga->sat_addr;
|
||||
|
Loading…
Reference in New Issue
Block a user