Passing tag size to skb_cow_head will make sure
there is enough headroom for the tag data.
This change does not introduce any overhead in case there
is already available headroom for tag.
Signed-off-by: Per Forlin <perfn@axis.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
        __le16 *phdr;
        u16 hdr;
 
-       if (skb_cow_head(skb, 0) < 0)
+       if (skb_cow_head(skb, AR9331_HDR_LEN) < 0)
                return NULL;
 
        phdr = skb_push(skb, AR9331_HDR_LEN);