Skip to content

Commit 78e7a2a

Browse files
edumazetdavem330
authored andcommitted
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: David Ahern <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Tested-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d3fff6c commit 78e7a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/vrf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static int vrf_dev_init(struct net_device *dev)
661661

662662
/* similarly, oper state is irrelevant; set to up to avoid confusion */
663663
dev->operstate = IF_OPER_UP;
664-
664+
netdev_lockdep_set_classes(dev);
665665
return 0;
666666

667667
out_rth:

0 commit comments

Comments
 (0)