Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290165
b: refs/heads/master
c: 7c43161
h: refs/heads/master
i:
  290163: df69848
v: v3
  • Loading branch information
Ben Hutchings committed Feb 13, 2012
1 parent 8e4c2c7 commit 08c9d64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b6262d0ccf759a16fabe11d904a2531125a4b71
refs/heads/master: 7c43161c11d7f40e38db9a1adb61347f06127796
7 changes: 6 additions & 1 deletion trunk/drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2502,9 +2502,14 @@ static int __devinit efx_pci_probe(struct pci_dev *pci_dev,

netif_dbg(efx, probe, efx->net_dev, "initialisation successful\n");

/* Try to create MTDs, but allow this to fail */
rtnl_lock();
efx_mtd_probe(efx); /* allowed to fail */
rc = efx_mtd_probe(efx);
rtnl_unlock();
if (rc)
netif_warn(efx, probe, efx->net_dev,
"failed to create MTDs (%d)\n", rc);

return 0;

fail4:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/sfc/mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static int efx_mtd_probe_device(struct efx_nic *efx, struct efx_mtd *efx_mtd)
--part;
efx_mtd_remove_partition(part);
}
/* mtd_device_register() returns 1 if the MTD table is full */
/* Failure is unlikely here, but probably means we're out of memory */
return -ENOMEM;
}

Expand Down

0 comments on commit 08c9d64

Please sign in to comment.