From: Arun Easi Date: Wed, 22 Aug 2012 18:21:10 +0000 (-0400) Subject: [SCSI] qla2xxx: Fix for continuous rescan attempts in arbitrated loop topology. X-Git-Tag: next-20120917~76^2^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=490f5f115be509ce4b826fb8f2b1d997abaea2a6;p=karo-tx-linux.git [SCSI] qla2xxx: Fix for continuous rescan attempts in arbitrated loop topology. Stale information in the temporary fcport created in qla2x00_configure_local_loop() causes qla2x00_get_port_database() call to fail. This reschedules scan, which gets stuck continuously in the rescheduling-of-scan loop due to the failure. Signed-off-by: Arun Easi Signed-off-by: Chad Dupuis Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 0c3f8e7126bd..4263358710dc 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -2826,6 +2826,8 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha) if (loop_id > LAST_LOCAL_LOOP_ID) continue; + memset(new_fcport, 0, sizeof(fc_port_t)); + /* Fill in member data. */ new_fcport->d_id.b.domain = domain; new_fcport->d_id.b.area = area;