ehea: Fix a DLPAR bug on ehea_rereg_mrs().

We are currently continuing if ehea_restart_qps() fails, when we
do a memory DLPAR (remove or add more memory to the system).

This patch just let the NAPI disabled if the ehea_restart_qps()
fails.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Breno Leitao and committed by David S. Miller 6f4d6dc1 c6914a6f

+6 -3
+6 -3
drivers/net/ehea/ehea_main.c
··· 3040 3040 3041 3041 if (dev->flags & IFF_UP) { 3042 3042 mutex_lock(&port->port_lock); 3043 - port_napi_enable(port); 3044 3043 ret = ehea_restart_qps(dev); 3045 - check_sqs(port); 3046 - if (!ret) 3044 + if (!ret) { 3045 + check_sqs(port); 3046 + port_napi_enable(port); 3047 3047 netif_wake_queue(dev); 3048 + } else { 3049 + netdev_err(dev, "Unable to restart QPS\n"); 3050 + } 3048 3051 mutex_unlock(&port->port_lock); 3049 3052 } 3050 3053 }