diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-04-20 01:44:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-04-20 01:44:17 -0400 |
commit | c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d (patch) | |
tree | 4d0116592a49e7887e33b778ba1b286758812a5f /net | |
parent | 88a66858253c57334a519a77187234867bc8605c (diff) |
[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>
Diffstat (limited to 'net')
-rw-r--r-- | net/appletalk/ddp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index d1fea5c3dda1..876dbac71060 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c | |||
@@ -573,6 +573,7 @@ static int atrtr_create(struct rtentry *r, struct net_device *devhint) | |||
573 | 573 | ||
574 | /* Fill in the routing entry */ | 574 | /* Fill in the routing entry */ |
575 | rt->target = ta->sat_addr; | 575 | rt->target = ta->sat_addr; |
576 | dev_hold(devhint); | ||
576 | rt->dev = devhint; | 577 | rt->dev = devhint; |
577 | rt->flags = r->rt_flags; | 578 | rt->flags = r->rt_flags; |
578 | rt->gateway = ga->sat_addr; | 579 | rt->gateway = ga->sat_addr; |