diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-02 13:17:37 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-02 13:17:37 -0400 |
commit | 00a62d4bc9b9a0388abee5c5ea946b9631b149d5 (patch) | |
tree | f0c97cb1ffed720515323337f2d8b307900b306c | |
parent | 91445c72cac7cb48f383fc6e44221e244cc32f6e (diff) |
drivers/net/ethernet/tile: fix netdev_alloc_skb() bombing
Commit dae2e9f430c46c29e3f771110094bd3da3625aa4 changed dev_alloc_skb()
to netdev_alloc_skb(), adding a dev pointer, but erroneously used "->"
instead of "." for a struct member when accessing the dev pointer.
This change fixes the build breakage.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
-rw-r--r-- | drivers/net/ethernet/tile/tilepro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/tile/tilepro.c b/drivers/net/ethernet/tile/tilepro.c index 75e590545179..3d501ec7fad7 100644 --- a/drivers/net/ethernet/tile/tilepro.c +++ b/drivers/net/ethernet/tile/tilepro.c | |||
@@ -448,7 +448,7 @@ static bool tile_net_provide_needed_buffer(struct tile_net_cpu *info, | |||
448 | struct sk_buff **skb_ptr; | 448 | struct sk_buff **skb_ptr; |
449 | 449 | ||
450 | /* Request 96 extra bytes for alignment purposes. */ | 450 | /* Request 96 extra bytes for alignment purposes. */ |
451 | skb = netdev_alloc_skb(info->napi->dev, len + padding); | 451 | skb = netdev_alloc_skb(info->napi.dev, len + padding); |
452 | if (skb == NULL) | 452 | if (skb == NULL) |
453 | return false; | 453 | return false; |
454 | 454 | ||