Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (45 commits) cnic: Fix ISCSI_KEVENT_IF_DOWN message handling. net: irda: init spinlock after memcpy ixgbe: fix for 82599 errata marking UDP checksum errors r8169: WakeOnLan fix for the 8168 netxen: reset ring consumer during cleanup net/bridge: use kobject_put to release kobject in br_add_if error path smc91x.h: add config for Nomadik evaluation kit NET: ROSE: Don't use static buffer. eepro: Read buffer overflow tokenring: Read buffer overflow at1700: Read buffer overflow fealnx: Write outside array bounds ixgbe: remove unnecessary call to device_init_wakeup ixgbe: Don't priority tag control frames in DCB mode ixgbe: Enable FCoE offload when DCB is enabled for 82599 net: Rework mdio-ofgpio driver to use of_mdio infrastructure register at91_ether using platform_driver_probe skge: Enable WoL by default if supported net: KS8851 needs to depend on MII be2net: Bug fix in the non-lro path. Size of received packet was not updated in statistics properly. ...
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user