]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/net/ethernet/tile: fix netdev_alloc_skb() bombing
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 2 Apr 2012 17:17:37 +0000 (13:17 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 2 Apr 2012 19:32:00 +0000 (15:32 -0400)
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>
drivers/net/ethernet/tile/tilepro.c

index 261356c2dc99ed4bdff8af73afb132c9baa6f3e7..8f6f02862d239b5b8a0d630d43386f983e7c4cba 100644 (file)
@@ -433,7 +433,7 @@ static bool tile_net_provide_needed_buffer(struct tile_net_cpu *info,
        struct sk_buff **skb_ptr;
 
        /* Request 96 extra bytes for alignment purposes. */
-       skb = netdev_alloc_skb(info->napi->dev, len + padding);
+       skb = netdev_alloc_skb(info->napi.dev, len + padding);
        if (skb == NULL)
                return false;