Re: [PATCH rdma-rc] RDMA/siw: Properly check send and receive CQ pointers
From: Jason Gunthorpe
Date: Mon May 10 2021 - 15:22:10 EST
On Sun, May 09, 2021 at 02:39:21PM +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> The check for the NULL of pointer received from container_of is
> incorrect by definition as it points to some random memory.
>
> Change such check with proper NULL check of SIW QP attributes.
>
> Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
> Reviewed-by: Bernard Metzler <bmt@xxxxxxxxxxxxxx>
> ---
> drivers/infiniband/sw/siw/siw_verbs.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
Applied to for-rc, thanks
Jason