Skip to content

Commit

Permalink
vxlan: correct typo in call to unregister_netdevice_queue
Browse files Browse the repository at this point in the history
By inspection, this appears to be a typo.  The gating comparison
involves vxlan->dev rather than dev.  In fact, dev is the iterator in
the preceding loop above but it is actually constant in the 2nd loop.

Use of dev seems to be a bad cut-n-paste from the prior call to
unregister_netdevice_queue.  Change dev to vxlan->dev, since that is
what is actually being checked.

Signed-off-by: John W. Linville <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
linvjw authored and davem330 committed May 18, 2015
1 parent 456cdf5 commit 13c3ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/vxlan.c
Original file line number Diff line number Diff line change
@@ -2961,7 +2961,7 @@ static void __net_exit vxlan_exit_net(struct net *net)
* to the list by the previous loop.
*/
if (!net_eq(dev_net(vxlan->dev), net))
unregister_netdevice_queue(dev, &list);
unregister_netdevice_queue(vxlan->dev, &list);
}

unregister_netdevice_many(&list);

0 comments on commit 13c3ed6

Please sign in to comment.