linux/drivers/infiniband
Leon Romanovsky b83b491927 RDMA/siw: Properly check send and receive CQ pointers
[ Upstream commit a568814a55 ]

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: 303ae1cdfd ("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>
2021-05-26 12:06:47 +02:00
..
core RDMA/core: Add CM to restrack after successful attachment to a device 2021-05-14 09:50:42 +02:00
hw IB/hfi1: Correct oversized ring allocation 2021-05-19 10:12:55 +02:00
sw RDMA/siw: Properly check send and receive CQ pointers 2021-05-26 12:06:47 +02:00
ulp RDMA/rtrs-clt: destroy sysfs after removing session from active list 2021-05-14 09:50:36 +02:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00