diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_erp.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_erp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c index f5ebeb7ca2be..8c117416d5ad 100644 --- a/drivers/s390/scsi/zfcp_erp.c +++ b/drivers/s390/scsi/zfcp_erp.c | |||
@@ -1236,6 +1236,8 @@ static void zfcp_erp_rports_del(struct zfcp_adapter *adapter) | |||
1236 | { | 1236 | { |
1237 | struct zfcp_port *port; | 1237 | struct zfcp_port *port; |
1238 | list_for_each_entry(port, &adapter->port_list_head, list) { | 1238 | list_for_each_entry(port, &adapter->port_list_head, list) { |
1239 | if (!port->rport) | ||
1240 | continue; | ||
1239 | fc_remote_port_delete(port->rport); | 1241 | fc_remote_port_delete(port->rport); |
1240 | port->rport = NULL; | 1242 | port->rport = NULL; |
1241 | } | 1243 | } |