From: Xinghai Yu Date: Wed, 17 Jul 2013 02:54:01 +0000 (+0800) Subject: [SCSI] isci: Fix a infinite loop. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80aebef7c112ca2610ba8aa6cd8cb02f3828e366;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Acked-by: Lukasz Dorau Signed-off-by: James Bottomley --- 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, &ihost->phys[phy_index]); assigned_phy_mask |= (1 << phy_index); + phy_index++; } - phy_index++; } return sci_port_configuration_agent_validate_ports(ihost, port_agent);