|
@@ -907,8 +907,9 @@ int fc_port_login ( struct fc_port *port, struct fc_port_id *port_id,
|
907
|
907
|
sizeof ( port->link_node_wwn ) ) != 0 ) ||
|
908
|
908
|
( memcmp ( &port->link_port_wwn, link_port_wwn,
|
909
|
909
|
sizeof ( port->link_port_wwn ) ) != 0 ) ||
|
910
|
|
- ( memcmp ( &port->port_id, port_id,
|
911
|
|
- sizeof ( port->port_id ) ) != 0 ) ) ) {
|
|
910
|
+ ( has_fabric &&
|
|
911
|
+ ( memcmp ( &port->port_id, port_id,
|
|
912
|
+ sizeof ( port->port_id ) ) != 0 ) ) ) ) {
|
912
|
913
|
fc_port_logout ( port, 0 );
|
913
|
914
|
}
|
914
|
915
|
|