scsi: qla2xxx: Fix FC-AL connection target discovery
commite109bf21f4c61a869237a107249687d3c0f7e9ea
authorQuinn Tran <qtran@marvell.com>
Fri, 15 Mar 2019 22:04:18 +0000 (15 15:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Mar 2019 05:17:54 +0000 (27 14:17 +0900)
tree294f0ed1c1d07c9c5419bbe9302f724f98856758
parentabe481cfe98329a4bed82f3d7d910c8c638a4e77
scsi: qla2xxx: Fix FC-AL connection target discovery

commit 4705f10e82c63924bd84a9b31d15839ec9ba3d06 upstream.

Commit 7f147f9bfd44 ("scsi: qla2xxx: Fix N2N target discovery with Local
loop") fixed N2N target discovery for local loop.  However, same code is
used for FC-AL discovery as well. Added check to make sure we are bypassing
area and domain check only in N2N topology for target discovery.

Fixes: 7f147f9bfd44 ("scsi: qla2xxx: Fix N2N target discovery with Local loop")
Cc: stable@vger.kernel.org # 5.0+
Signed-off-by: Quinn Tran <qtran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_init.c