From: Herbert Xu Date: Wed, 20 Apr 2005 05:44:17 +0000 (-0700) Subject: [ATALK]: Add missing dev_hold() to atrtr_create(). X-Git-Tag: v2.6.12-rc3~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d;p=linux-2.6 [ATALK]: Add missing dev_hold() to atrtr_create(). Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index d1fea5c3dd..876dbac710 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;