linux/drivers/infiniband/hw/qedr
Michal Kalderon a25984f3ba RDMA/qedr: Fix null-pointer dereference when calling rdma_user_mmap_get_offset
When running against rdma-core that doesn't support doorbell recovery, the
rdma_user_mmap_entry won't be allocated for doorbell recovery related
mappings.

We have a flag indicating whether rdma-core supports doorbell recovery or
not which was used during initialization, however some cases didn't check
that the rdma_user_mmap_entry exists before attempting to acquire it's
offset.

Fixes: 97f6125092 ("RDMA/qedr: Add doorbell overflow recovery support")
Link: https://lore.kernel.org/r/20191118150645.26602-1-michal.kalderon@marvell.com
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-11-19 16:15:36 -04:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
main.c RDMA/qedr: Remove unsupported modify_port callback 2019-11-06 13:30:24 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
qedr.h RDMA/qedr: Add iWARP doorbell recovery support 2019-11-06 13:08:01 -04:00
qedr_hsi_rdma.h qedr: Add support for kernel mode SRQ's 2018-08-14 16:31:54 -06:00
qedr_iw_cm.c RDMA/qedr: Make qedr_iw_load_qp() static 2019-11-14 11:55:31 -04:00
qedr_iw_cm.h RDMA/qedr: Add iWARP connection management functions 2017-08-18 12:27:14 -04:00
qedr_roce_cm.c RDMA: Introduce and use GID attr helper to read RoCE L2 fields 2019-05-03 11:10:02 -03:00
qedr_roce_cm.h RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const 2018-07-30 20:09:34 -06:00
verbs.c RDMA/qedr: Fix null-pointer dereference when calling rdma_user_mmap_get_offset 2019-11-19 16:15:36 -04:00
verbs.h RDMA: Change MAD processing function to remove extra casting and parameter 2019-11-12 20:20:15 -04:00