Commit 6c5fe596 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[WANROUTER]: Use LL_RESERVED_SPACE() where applicable.

parent d9a9168b
......@@ -591,14 +591,14 @@ static int wanpipe_sendmsg(struct kiocb *iocb, struct socket *sock,
return -EMSGSIZE;
}
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;
/* Returns -EFAULT on error */
......
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