Skip to content

Commit

Permalink
[ATALK]: Add missing dev_hold() to atrtr_create().
Browse files Browse the repository at this point in the history
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Apr 20, 2005
1 parent 88a6685 commit c7f905f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/appletalk/ddp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c7f905f

Please sign in to comment.