From c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Tue, 19 Apr 2005 22:44:17 -0700 Subject: [PATCH] [ATALK]: Add missing dev_hold() to atrtr_create(). Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- net/appletalk/ddp.c | 1 + 1 file changed, 1 insertion(+) 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; -- GitLab