diff options
| author | Alexey Simakov <bigalex934@gmail.com> | 2025-10-21 16:00:36 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-10-22 19:19:31 -0700 |
| commit | 441f0647f7673e0e64d4910ef61a5fb8f16bfb82 (patch) | |
| tree | 4cd84c10fd08d680f567eddd285bab0c93ef408f /tools/docs/parse-headers.py | |
| parent | a767957e7a83f9e742be196aa52a48de8ac5a7e4 (diff) | |
sctp: avoid NULL dereference when chunk data buffer is missing
chunk->skb pointer is dereferenced in the if-block where it's supposed
to be NULL only.
chunk->skb can only be NULL if chunk->head_skb is not. Check for frag_list
instead and do it just before replacing chunk->skb. We're sure that
otherwise chunk->skb is non-NULL because of outer if() condition.
Fixes: 90017accff61 ("sctp: Add GSO support")
Signed-off-by: Alexey Simakov <bigalex934@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Link: https://patch.msgid.link/20251021130034.6333-1-bigalex934@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions
