Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7f905f0 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

[ATALK]: Add missing dev_hold() to atrtr_create().

parent 88a66858
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;