[SK_BUFF]: Convert skb->tail to sk_buff_data_t
[linux-block.git] / net / netlink / af_netlink.c
index 50dc5edb7752308f896c87976f5b64052cc9c451..fdb6eb13cbcbd43ae5487787ef0e57dbb06ccad0 100644 (file)
@@ -785,7 +785,7 @@ static inline struct sk_buff *netlink_trim(struct sk_buff *skb,
 
        skb_orphan(skb);
 
-       delta = skb->end - skb->tail;
+       delta = skb->end - skb_tail_pointer(skb);
        if (delta * 2 < skb->truesize)
                return skb;