diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-04-20 07:44:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-04-20 07:44:17 +0200 |
commit | c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d (patch) | |
tree | 4d0116592a49e7887e33b778ba1b286758812a5f | |
parent | [SOCK]: on failure free the sock from the right place (diff) | |
download | linux-c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d.tar.xz linux-c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d.zip |
[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>
-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) /* 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; |