diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 16:10:32 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 16:10:32 +0300 |
| commit | c85bcf5629baf641bef76c69f6fb71feaf05cc61 (patch) | |
| tree | 87afb6bf25e749328dcc85e8125e54445a79a90c /net/sctp/inqueue.c | |
| parent | 53edb6a8231f70d7df693b0c4c33462d2fce0044 (diff) | |
| parent | 371f1e070fa95c71356104a406855a361aad5668 (diff) | |
| download | linux-c85bcf5629baf641bef76c69f6fb71feaf05cc61.tar.xz | |
Merge v6.17.6
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sctp/inqueue.c')
| -rw-r--r-- | net/sctp/inqueue.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index 5c1652181805..f5a7d5a38755 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c @@ -169,13 +169,14 @@ next_chunk: chunk->head_skb = chunk->skb; /* skbs with "cover letter" */ - if (chunk->head_skb && chunk->skb->data_len == chunk->skb->len) + if (chunk->head_skb && chunk->skb->data_len == chunk->skb->len) { + if (WARN_ON(!skb_shinfo(chunk->skb)->frag_list)) { + __SCTP_INC_STATS(dev_net(chunk->skb->dev), + SCTP_MIB_IN_PKT_DISCARDS); + sctp_chunk_free(chunk); + goto next_chunk; + } chunk->skb = skb_shinfo(chunk->skb)->frag_list; - - if (WARN_ON(!chunk->skb)) { - __SCTP_INC_STATS(dev_net(chunk->skb->dev), SCTP_MIB_IN_PKT_DISCARDS); - sctp_chunk_free(chunk); - goto next_chunk; } } |
