summaryrefslogtreecommitdiffstats
path: root/net/appletalk
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-04-19 22:44:17 -0700
committerDavid S. Miller <davem@davemloft.net>2005-04-19 22:44:17 -0700
commitc7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d (patch)
tree4d0116592a49e7887e33b778ba1b286758812a5f /net/appletalk
parent88a66858253c57334a519a77187234867bc8605c (diff)
downloadlinux-c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d.tar.gz
linux-c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d.tar.bz2
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>
Diffstat (limited to 'net/appletalk')
-rw-r--r--net/appletalk/ddp.c1
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;