Message ID | 20220809175544.354343-2-kuba@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | d800a7b3577bfb783481b02865d8775a760212a7 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/2] tls: rx: device: bound the frag walk | expand |
diff --git a/net/tls/tls_strp.c b/net/tls/tls_strp.c index f0b7c9122fba..9b79e334dbd9 100644 --- a/net/tls/tls_strp.c +++ b/net/tls/tls_strp.c @@ -41,7 +41,7 @@ static struct sk_buff *tls_strp_msg_make_copy(struct tls_strparser *strp) struct sk_buff *skb; int i, err, offset; - skb = alloc_skb_with_frags(0, strp->anchor->len, TLS_PAGE_ORDER, + skb = alloc_skb_with_frags(0, strp->stm.full_len, TLS_PAGE_ORDER, &err, strp->sk->sk_allocation); if (!skb) return NULL;