diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_fc.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index 3a573b03eb86..1a7c80a77ff5 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c | |||
@@ -526,7 +526,8 @@ static void zfcp_validate_port(struct zfcp_port *port) | |||
526 | 526 | ||
527 | atomic_clear_mask(ZFCP_STATUS_COMMON_NOESC, &port->status); | 527 | atomic_clear_mask(ZFCP_STATUS_COMMON_NOESC, &port->status); |
528 | 528 | ||
529 | if ((port->supported_classes != 0) || (port->units != 0)) { | 529 | if ((port->supported_classes != 0) || |
530 | !list_empty(&port->unit_list_head)) { | ||
530 | zfcp_port_put(port); | 531 | zfcp_port_put(port); |
531 | return; | 532 | return; |
532 | } | 533 | } |