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

Commit 78e7a2ae authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: vrf: call netdev_lockdep_set_classes()



In case a qdisc is used on a vrf device, we need to use different
lockdep classes to avoid false positives.

Use the new netdev_lockdep_set_classes() generic helper.

Reported-by: default avatarDavid Ahern <dsa@cumulusnetworks.com>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Tested-by: default avatarDavid Ahern <dsa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d3fff6c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -661,7 +661,7 @@ static int vrf_dev_init(struct net_device *dev)

	/* similarly, oper state is irrelevant; set to up to avoid confusion */
	dev->operstate = IF_OPER_UP;

	netdev_lockdep_set_classes(dev);
	return 0;

out_rth: