Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80aebef7 authored by Xinghai Yu's avatar Xinghai Yu Committed by James Bottomley
Browse files

[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: default avatarXinghai Yu <yuxinghai@cn.fujitsu.com>
Acked-by: default avatarLukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 11f08ca8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -311,9 +311,9 @@ sci_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
					      &ihost->phys[phy_index]);
					      &ihost->phys[phy_index]);


			assigned_phy_mask |= (1 << phy_index);
			assigned_phy_mask |= (1 << phy_index);
			phy_index++;
		}
		}


		phy_index++;
	}
	}


	return sci_port_configuration_agent_validate_ports(ihost, port_agent);
	return sci_port_configuration_agent_validate_ports(ihost, port_agent);