]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qla2xxx: Fix for continuous rescan attempts in arbitrated loop topology.
authorArun Easi <arun.easi@qlogic.com>
Tue, 19 Jun 2012 23:56:27 +0000 (16:56 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 23 Jul 2012 08:02:46 +0000 (01:02 -0700)
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.

JIRA Key: V2632FC-221

drivers/scsi/qla2xxx/qla_init.c

index bc78b2f2eb698c072cc335516c890033cd3f5dcd..23314b7c8a7cbb59719786938812eb9a12f538dc 100644 (file)
@@ -2802,6 +2802,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;