[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251112113005.GC17382@unreal>
Date: Wed, 12 Nov 2025 13:30:05 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Tuo Li <islituo@...il.com>
Cc: krzysztof.czurylo@...el.com, tatyana.e.nikolova@...el.com, jgg@...pe.ca,
linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] RDMA/irdma: Fix possible null-pointer dereference in
irdma_create_user_ah()
On Wed, Nov 12, 2025 at 03:45:12PM +0800, Tuo Li wrote:
> The variable udata is checked at the beginning of irdma_create_user_as(),
> indicating that it can be NULL:
>
> if (udata && udata->outlen < IRDMA_CREATE_AH_MIN_RESP_LEN)
> return -EINVAL;
Just delete "udata" check from this if(). irdma_create_user_ah() always
receives udate.
Thanks
Powered by blists - more mailing lists