]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
RDMA/siw: Properly check send and receive CQ pointers
authorLeon Romanovsky <leonro@nvidia.com>
Sun, 9 May 2021 11:39:21 +0000 (14:39 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 13:02:29 +0000 (15:02 +0200)
commitf3917872c7887950cf804e5e84ac70ccf86eed21
tree21d47a716b5af85a7ad69307be900f4e8b69b428
parent7c6e04796556c60875d37ff0226b560f4c570f33
RDMA/siw: Properly check send and receive CQ pointers

BugLink: https://bugs.launchpad.net/bugs/1931159
[ Upstream commit a568814a55a0e82bbc7c7b51333d0c38e8fb5520 ]

The check for the NULL of pointer received from container_of() is
incorrect by definition as it points to some offset from NULL.

Change such check with proper NULL check of SIW QP attributes.

Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
Link: https://lore.kernel.org/r/a7535a82925f6f4c1f062abaa294f3ae6e54bdd2.1620560310.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/infiniband/sw/siw/siw_verbs.c