aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinghai Yu <yuxinghai@cn.fujitsu.com>2013-07-16 22:54:01 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-08-26 04:51:30 -0400
commit80aebef7c112ca2610ba8aa6cd8cb02f3828e366 (patch)
tree419184920c261e7812f9145308631a6e06d32269
parent11f08ca8113d237d4cc732b4f091271c3fd0fc62 (diff)
[SCSI] isci: Fix a infinite loop.
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>
-rw-r--r--drivers/scsi/isci/port_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/isci/port_config.c b/drivers/scsi/isci/port_config.c
index cd962da4a57a..85c77f6b802b 100644
--- a/drivers/scsi/isci/port_config.c
+++ b/drivers/scsi/isci/port_config.c
@@ -311,9 +311,9 @@ sci_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
311 &ihost->phys[phy_index]); 311 &ihost->phys[phy_index]);
312 312
313 assigned_phy_mask |= (1 << phy_index); 313 assigned_phy_mask |= (1 << phy_index);
314 phy_index++;
314 } 315 }
315 316
316 phy_index++;
317 } 317 }
318 318
319 return sci_port_configuration_agent_validate_ports(ihost, port_agent); 319 return sci_port_configuration_agent_validate_ports(ihost, port_agent);