Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Merge 'net' bug fixes into 'net-next' as we have patches that will build on top of them. This merge commit includes a change from Emil Goode (emilgoode@gmail.com) that fixes a warning that would have been introduced by this merge. Specifically it fixes the pingv6_ops method ipv6_chk_addr() to add a "const" to the "struct net_device *dev" argument and likewise update the dummy_ipv6_chk_addr() declaration. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -195,7 +195,7 @@ struct sk_buff *__alloc_skb_head(gfp_t gfp_mask, int node)
|
||||
* the tail pointer in struct sk_buff!
|
||||
*/
|
||||
memset(skb, 0, offsetof(struct sk_buff, tail));
|
||||
skb->data = NULL;
|
||||
skb->head = NULL;
|
||||
skb->truesize = sizeof(struct sk_buff);
|
||||
atomic_set(&skb->users, 1);
|
||||
|
||||
@@ -605,7 +605,7 @@ static void skb_release_head_state(struct sk_buff *skb)
|
||||
static void skb_release_all(struct sk_buff *skb)
|
||||
{
|
||||
skb_release_head_state(skb);
|
||||
if (likely(skb->data))
|
||||
if (likely(skb->head))
|
||||
skb_release_data(skb);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user