diff --git a/[refs] b/[refs] index 6f16d1078fef..c82b18a62471 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ffafa60d496f80c250f2ae0340ae94434c0b0b4d +refs/heads/master: f83284fe209b1d143244bf462abf1b414eb7b62a diff --git a/trunk/drivers/net/fealnx.c b/trunk/drivers/net/fealnx.c index 891be28a7d4f..ee51557e942b 100644 --- a/trunk/drivers/net/fealnx.c +++ b/trunk/drivers/net/fealnx.c @@ -584,7 +584,8 @@ static int __devinit fealnx_init_one(struct pci_dev *pdev, if (np->flags == HAS_MII_XCVR) { int phy, phy_idx = 0; - for (phy = 1; phy < 32 && phy_idx < 4; phy++) { + for (phy = 1; phy < 32 && phy_idx < ARRAY_SIZE(np->phys); + phy++) { int mii_status = mdio_read(dev, phy, 1); if (mii_status != 0xffff && mii_status != 0x0000) {