atm: Do not free already unregistered net device.
Both br2684_push and br2684_exit do so, but unregister_netdev()
releases the device itself.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/atm/br2684.c b/net/atm/br2684.c
index 1b22806..3a74ff8 100644
--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -350,7 +350,6 @@
list_del(&brdev->br2684_devs);
read_unlock(&devs_lock);
unregister_netdev(net_dev);
- free_netdev(net_dev);
}
return;
}
@@ -771,7 +770,6 @@
list_del(&brdev->br2684_devs);
unregister_netdev(net_dev);
- free_netdev(net_dev);
}
}