diff options
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 3 |
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 | ||
3179 | static void ehea_shutdown_single_port(struct ehea_port *port) | 3179 | static 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 | ||
3188 | static int ehea_setup_ports(struct ehea_adapter *adapter) | 3189 | static int ehea_setup_ports(struct ehea_adapter *adapter) |