Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97338
b: refs/heads/master
c: 9b7bfc4
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and Jeff Garzik committed May 22, 2008
1 parent acc52a3 commit 58e28c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3208b5ebae9e62c32f0cf74dce1d4ddfac3f895
refs/heads/master: 9b7bfc4c4c601a5cb368751f60cac054492c45f5
2 changes: 2 additions & 0 deletions trunk/drivers/net/sfc/selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ efx_test_loopback(struct efx_tx_queue *tx_queue,
state->packet_count = min(1 << (i << 2), state->packet_count);
state->skbs = kzalloc(sizeof(state->skbs[0]) *
state->packet_count, GFP_KERNEL);
if (!state->skbs)
return -ENOMEM;
state->flush = 0;

EFX_LOG(efx, "TX queue %d testing %s loopback with %d "
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/sfc/tenxpress.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ static int tenxpress_phy_init(struct efx_nic *efx)
int rc = 0;

phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL);
if (!phy_data)
return -ENOMEM;
efx->phy_data = phy_data;

tenxpress_set_state(efx, TENXPRESS_STATUS_NORMAL);
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/sfc/xfp_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ static int xfp_phy_init(struct efx_nic *efx)
int rc;

phy_data = kzalloc(sizeof(struct xfp_phy_data), GFP_KERNEL);
if (!phy_data)
return -ENOMEM;
efx->phy_data = phy_data;

EFX_INFO(efx, "XFP: PHY ID reg %x (OUI %x model %x revision"
Expand Down

0 comments on commit 58e28c1

Please sign in to comment.