aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea/ehea_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r--drivers/net/ehea/ehea_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index d1b6d4e7495d..8645224da1cf 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -3178,11 +3178,12 @@ out_err:
3178 3178
3179static void ehea_shutdown_single_port(struct ehea_port *port) 3179static void ehea_shutdown_single_port(struct ehea_port *port)
3180{ 3180{
3181 struct ehea_adapter *adapter = port->adapter;
3181 unregister_netdev(port->netdev); 3182 unregister_netdev(port->netdev);
3182 ehea_unregister_port(port); 3183 ehea_unregister_port(port);
3183 kfree(port->mc_list); 3184 kfree(port->mc_list);
3184 free_netdev(port->netdev); 3185 free_netdev(port->netdev);
3185 port->adapter->active_ports--; 3186 adapter->active_ports--;
3186} 3187}
3187 3188
3188static int ehea_setup_ports(struct ehea_adapter *adapter) 3189static int ehea_setup_ports(struct ehea_adapter *adapter)