linux/drivers/infiniband/hw
Leon Romanovsky 4289861d88 RDMA/mlx5: Protect from NULL pointer derefence
The mlx5_ib_alloc_implicit_mr() can fail to acquire pages
and the returned mr pointer won't be valid. Ensure that it
is not error prior to access.

Cc: <stable@vger.kernel.org> # 4.10
Fixes: 81713d3788 ("IB/mlx5: Add implicit MR support")
Reported-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2018-03-15 10:59:58 -04:00
..
bnxt_re Merge branch 'k.o/wip/dl-for-rc' into k.o/wip/dl-for-next 2018-03-14 19:28:58 -04:00
cxgb3 IB/cxgb3: remove cxio_dbg.c 2018-02-14 16:21:15 -07:00
cxgb4 iw_cxgb4: initialize ib_mr fields for user mrs 2018-03-08 15:03:03 -05:00
hfi1 IB: remove duplicate header files 2018-03-13 16:46:03 -04:00
hns RDMA/hns: Support cq record doorbell for kernel space 2018-03-13 16:40:15 -04:00
i40iw RDMA/i40iw: include linux/irq.h 2018-03-14 16:09:56 -04:00
mlx4 Merge branch 'k.o/wip/dl-for-rc' into k.o/wip/dl-for-next 2018-03-14 19:28:58 -04:00
mlx5 RDMA/mlx5: Protect from NULL pointer derefence 2018-03-15 10:59:58 -04:00
mthca IB/mthca: remove mthca_user.h 2018-01-28 14:07:16 -07:00
nes nes: Change accelerated flag to bool 2017-12-22 13:33:30 -07:00
ocrdma IB/ocrdma: Use zeroing memory allocator than allocator/memset 2018-01-02 11:20:13 -07:00
qedr RDMA/qedr: Fix iWARP write and send with immediate 2018-03-06 19:57:37 -07:00
qib infiniband: hw: Drop unnecessary continue 2018-03-06 16:00:51 -07:00
usnic IB/usnic: Delete an error message for a failed memory allocation in usnic_transport_init() 2018-02-28 13:57:39 -07:00
vmw_pvrdma RDMA/pvrdma: Properly annotate QP states 2018-03-14 15:34:25 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00