Re: [PATCH] RDMA/irdma: Fix possible null-pointer dereference in irdma_create_user_ah()

From: Leon Romanovsky

Date: Wed Nov 12 2025 - 06:30:11 EST


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