linux/drivers/infiniband/hw
Colin Ian King f70968f05d i40iw: fix null pointer dereference on a null wqe pointer
Currently the null check for wqe is incorrect and lets a null wqe
be passed to set_64bit_val and this indexes into the null pointer
causing a null pointer dereference.  Fix this by fixing the null
pointer check to return an error if wqe is null.

Link: https://lore.kernel.org/r/20200401224921.405279-1-colin.king@canonical.com
Addresses-Coverity: ("dereference after a null check")
Fixes: 4b34e23f4e ("i40iw: Report correct firmware version")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-04-14 15:44:50 -03:00
..
bnxt_re RDMA/bnxt_re: make bnxt_re_ib_init static 2020-03-30 15:03:19 -03:00
cxgb4 Linux 5.6-rc4 2020-03-04 13:11:06 -04:00
efa RDMA/efa: Use in-kernel offsetofend() to check field availability 2020-03-18 21:06:37 -03:00
hfi1 RDMA 5.7 pull request 2020-04-01 18:18:18 -07:00
hns RDMA/hns: Fix uninitialized variable bug 2020-03-29 11:09:55 -03:00
i40iw i40iw: fix null pointer dereference on a null wqe pointer 2020-04-14 15:44:50 -03:00
mlx4 RDMA/mlx4: Delete duplicated offsetofend implementation 2020-03-13 10:42:48 -03:00
mlx5 RDMA 5.7 pull request 2020-04-01 18:18:18 -07:00
mthca RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
ocrdma RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
qedr RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
qib IB/qib: Delete struct qib_ivdev.qp_rnd 2020-03-29 11:15:16 -03:00
usnic RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
vmw_pvrdma RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00