From: Steffen Klassert <steffen.klass...@secunet.com>
Date: Mon, 3 Apr 2017 10:15:52 +0200

> diff --git a/net/core/skbuff.c b/net/core/skbuff.c
> index 9f78109..8796b93 100644
> --- a/net/core/skbuff.c
> +++ b/net/core/skbuff.c
> @@ -257,7 +257,7 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t 
> gfp_mask,
>  
>       /* make sure we initialize shinfo sequentially */
>       shinfo = skb_shinfo(skb);
> -     memset(shinfo, 0, offsetof(struct skb_shared_info, dataref));
> +     memset(shinfo, 0, offsetof(struct skb_shared_info, _unused));
>       atomic_set(&shinfo->dataref, 1);
>       kmemcheck_annotate_variable(shinfo->destructor_arg);
>  

There is another memset() that needs this conversion in __build_skb().

Reply via email to