linux-stable/drivers/infiniband/hw
Majd Dibbiny 09f16cf59f IB/mlx5: Fix use of null pointer PD
When a Raw Ethernet QP is created, a NULL pointer PD could be used.
Fixing that by only using the PD after validating it's valid.
smatch also reported this error:
drivers/infiniband/hw/mlx5/qp.c:1629 mlx5_ib_create_qp()
	 error: we previously assumed 'pd' could be null (see line 1616)

Fixes: 0fb2ed66a1 ('IB/mlx5: Add create and destroy functionality for Raw Packet QP')
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-02-02 16:42:22 -05:00
..
cxgb3 iw_cxgb3: Fix incorrectly returning error on success 2015-12-24 00:17:30 -05:00
cxgb4 Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
mlx4 Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
mlx5 IB/mlx5: Fix use of null pointer PD 2016-02-02 16:42:22 -05:00
mthca IB: remove in-kernel support for memory windows 2015-12-23 14:29:04 -05:00
nes infiniband: Replace memset with eth_zero_addr 2016-01-19 15:24:54 -05:00
ocrdma IB/core: Use hop-limit from IP stack for RoCE 2016-01-19 15:26:56 -05:00
qib Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
usnic IB/usnic: delete unneeded IS_ERR test 2015-12-23 10:50:58 -05:00
Makefile IB/ehca: Deprecate driver, move to staging, schedule deletion 2015-09-11 18:13:35 -04:00