Commit abce833b authored by David S. Miller's avatar David S. Miller

[ECONET]: Use LL_RESERVED_SPACE() where applicable. Noticed by yoshfuji.

parent 6a5b27ef
......@@ -318,12 +318,12 @@ static int econet_sendmsg(struct kiocb *iocb, struct socket *sock,
#ifdef CONFIG_ECONET_NATIVE
dev_hold(dev);
skb = sock_alloc_send_skb(sk, len+dev->hard_header_len+15,
skb = sock_alloc_send_skb(sk, len+LL_RESERVED_SPACE(dev),
msg->msg_flags & MSG_DONTWAIT, &err);
if (skb==NULL)
goto out_unlock;
skb_reserve(skb, (dev->hard_header_len+15)&~15);
skb_reserve(skb, LL_RESERVED_SPACE(dev));
skb->nh.raw = skb->data;
eb = (struct ec_cb *)&skb->cb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment