diff options
author | Artemy Kovalyov <artemyko@mellanox.com> | 2019-05-01 08:39:48 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-05-03 10:17:45 -0300 |
commit | 1a418f7764a00bc6ad8fd1b765b941c3a8389467 (patch) | |
tree | b20bfdb6ed297bc29fdd338937f56612e1196072 /drivers/infiniband/core/uverbs_cmd.c | |
parent | IB/mlx5: Add missing XRC options to QP optional params mask (diff) | |
download | linux-dev-1a418f7764a00bc6ad8fd1b765b941c3a8389467.tar.xz linux-dev-1a418f7764a00bc6ad8fd1b765b941c3a8389467.zip |
IB/core: Set qp->real_qp before it may be accessed
real_qp should be initialized before ib_destroy_qp() is called.
ib_destroy_qp() may be called in the error flow if ib_create_qp_security()
failed.
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_cmd.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_cmd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index 76ac113d1da5..5a3a1780ceea 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c @@ -1418,7 +1418,6 @@ static int create_qp(struct uverbs_attr_bundle *attrs, if (ret) goto err_cb; - qp->real_qp = qp; qp->pd = pd; qp->send_cq = attr.send_cq; qp->recv_cq = attr.recv_cq; |