X-Git-Url: https://repo.jachan.dev/linux.git/blobdiff_plain/b5aef86e089a2d85a6d627372287785d08938cbe..cd2a3bf02625ffad02a6b9f7df758ee36cf12769:/net/ipv6/esp6.c diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index 5afe9f83374d..239d4a65ad6e 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c @@ -296,7 +296,7 @@ int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info skb->len += tailen; skb->data_len += tailen; skb->truesize += tailen; - if (sk) + if (sk && sk_fullsock(sk)) refcount_add(tailen, &sk->sk_wmem_alloc); goto out;