diff options
author | Michal Kalderon | 2019-11-18 17:06:45 +0200 |
---|---|---|
committer | Jason Gunthorpe | 2019-11-19 16:15:36 -0400 |
commit | a25984f3baaa97079ce3e75c5a1d362155915a31 (patch) | |
tree | 62b12445e94ad571541f07f8125c46dc9dbc5ffb /net | |
parent | 0acc637dacb6bf12a17c9ad0c41d9ff3696d8b05 (diff) |
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: 97f612509294 ("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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions