[SCSI] isci: Fix a infinite loop.
authorXinghai Yu <yuxinghai@cn.fujitsu.com>
Wed, 17 Jul 2013 02:54:01 +0000 (10:54 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 26 Aug 2013 08:51:30 +0000 (12:51 +0400)
It seems the "phy_index++;" have been placed in wrong place, without it
the while circle up will do a infinite loop.

Signed-off-by: Xinghai Yu <yuxinghai@cn.fujitsu.com>
Acked-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/isci/port_config.c

index cd962da4a57a3c8fe9ca26d1a41827ccbf3040ca..85c77f6b802bdcba5795ced971a39e29f39ae8b9 100644 (file)
@@ -311,9 +311,9 @@ sci_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
                                              &ihost->phys[phy_index]);
 
                        assigned_phy_mask |= (1 << phy_index);
+                       phy_index++;
                }
 
-               phy_index++;
        }
 
        return sci_port_configuration_agent_validate_ports(ihost, port_agent);