From ddc2d90daba14fba7235b4d8daa945005048889b Mon Sep 17 00:00:00 2001 From: Ranganath V N Date: Wed, 22 Oct 2025 14:31:16 +0530 Subject: [PATCH] sctp: initalize the chunk variable Signed-off-by: Ranganath V N --- net/sctp/inqueue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index 5c1652181805..7f13d13f1796 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c @@ -120,7 +120,9 @@ struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) /* The assumption is that we are safe to process the chunks * at this time. */ - + chunk = kzalloc(sizeof(*chunk), GFP_ATOMIC); + if (!chunk) + return NULL; chunk = queue->in_progress; if (chunk) { /* There is a packet that we have been working on. -- 2.43.0