提交 80aebef7 编写于 作者: X Xinghai Yu 提交者: James Bottomley

[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: NXinghai Yu <yuxinghai@cn.fujitsu.com>
Acked-by: NLukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 11f08ca8
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册