提交 00a62d4b 编写于 作者: C Chris Metcalf

drivers/net/ethernet/tile: fix netdev_alloc_skb() bombing

Commit dae2e9f4 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: NChris Metcalf <cmetcalf@tilera.com>
上级 91445c72
......@@ -448,7 +448,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册