From: Herbert Xu Date: Wed, 20 Apr 2005 05:44:17 +0000 (-0700) Subject: [ATALK]: Add missing dev_hold() to atrtr_create(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [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 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;