linux/drivers/infiniband/hw/qedr
Kalderon, Michal 425cf5c135 RDMA/qedr: Fix NULL pointer dereference when running over iWARP without RDMA-CM
Some RoCE specific code in qedr_modify_qp was run over an iWARP device
when running perftest benchmarks without the -R option.

The commit 3e44e0ee08 ("IB/providers: Avoid null netdev check for RoCE")
exposed this. Dropping the check for NULL pointer on ndev in
qedr_modify_qp lead to a null pointer dereference when running over
iWARP. Before the code would identify ndev as being NULL and return an
error.

Fixes: 3e44e0ee08 ("IB/providers: Avoid null netdev check for RoCE")
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-06-11 11:04:14 -06:00
..
Kconfig Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
main.c Merge candidates for 4.17 merge window 2018-04-06 17:35:43 -07:00
Makefile RDMA/qedr: Add iWARP connection management qp related callbacks 2017-08-18 12:26:38 -04:00
qedr_hsi_rdma.h qed*: Utilize FW 8.33.11.0 2018-03-29 14:18:02 -04:00
qedr_iw_cm.c RDMA/qedr: Fix iWARP connect with port mapper 2018-03-06 19:57:37 -07:00
qedr_iw_cm.h RDMA/qedr: Add iWARP connection management functions 2017-08-18 12:27:14 -04:00
qedr_roce_cm.c IB/providers: Avoid null netdev check for RoCE 2018-04-03 21:33:51 -06:00
qedr_roce_cm.h
qedr.h Merge branch 'for-next-early' into for-next 2017-10-18 13:07:13 -04:00
verbs.c RDMA/qedr: Fix NULL pointer dereference when running over iWARP without RDMA-CM 2018-06-11 11:04:14 -06:00
verbs.h RDMA/providers: Simplify query_gid callback of RoCE providers 2018-04-03 21:33:47 -06:00