diff options
author | Majd Dibbiny <majd@mellanox.com> | 2016-01-28 17:51:48 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-02-02 16:42:22 -0500 |
commit | 09f16cf59fbf825130c216c3af189253505dc9d9 (patch) | |
tree | 83eaf9e7dd41596bc83285d9bbfb9ece5a64339b /tools/perf/builtin-script.c | |
parent | a168a41c8147fe644f1144031a6ec27a1a13fe37 (diff) |
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: 0fb2ed66a14c ('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>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions