diff options
| -rw-r--r-- | drivers/s390/scsi/zfcp_erp.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c index b5562f952654..c75d6f35cb5f 100644 --- a/drivers/s390/scsi/zfcp_erp.c +++ b/drivers/s390/scsi/zfcp_erp.c | |||
| @@ -848,11 +848,17 @@ void zfcp_erp_port_strategy_open_lookup(struct work_struct *work) | |||
| 848 | gid_pn_work); | 848 | gid_pn_work); |
| 849 | 849 | ||
| 850 | retval = zfcp_fc_ns_gid_pn(&port->erp_action); | 850 | retval = zfcp_fc_ns_gid_pn(&port->erp_action); |
| 851 | if (retval == -ENOMEM) | 851 | if (!retval) { |
| 852 | port->erp_action.step = ZFCP_ERP_STEP_NAMESERVER_LOOKUP; | ||
| 853 | goto out; | ||
| 854 | } | ||
| 855 | if (retval == -ENOMEM) { | ||
| 852 | zfcp_erp_notify(&port->erp_action, ZFCP_STATUS_ERP_LOWMEM); | 856 | zfcp_erp_notify(&port->erp_action, ZFCP_STATUS_ERP_LOWMEM); |
| 853 | port->erp_action.step = ZFCP_ERP_STEP_NAMESERVER_LOOKUP; | 857 | goto out; |
| 854 | if (retval) | 858 | } |
| 855 | zfcp_erp_notify(&port->erp_action, 0); | 859 | /* all other error condtions */ |
| 860 | zfcp_erp_notify(&port->erp_action, 0); | ||
| 861 | out: | ||
| 856 | zfcp_port_put(port); | 862 | zfcp_port_put(port); |
| 857 | } | 863 | } |
| 858 | 864 | ||
