diff options
author | John W. Linville <linville@tuxdriver.com> | 2015-05-18 13:51:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-18 16:57:09 -0400 |
commit | 13c3ed6a92724d8c8cb148a14b0ae190ddfe7413 (patch) | |
tree | 23064a4cc7a9f3edbd6f75ad5daad8b4ad26dc88 /drivers/net/vxlan.c | |
parent | 456cdf53efb428ce29630485b8c56e8877af36d6 (diff) | |
download | lwn-13c3ed6a92724d8c8cb148a14b0ae190ddfe7413.tar.gz lwn-13c3ed6a92724d8c8cb148a14b0ae190ddfe7413.zip |
vxlan: correct typo in call to unregister_netdevice_queue
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 <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 27a5f954f8e9..21a0fbf1ed94 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -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); |