IB/core: Set qp->real_qp before it may be accessed
authorArtemy Kovalyov <artemyko@mellanox.com>
Wed, 1 May 2019 05:39:48 +0000 (08:39 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 May 2019 13:17:45 +0000 (10:17 -0300)
commit1a418f7764a00bc6ad8fd1b765b941c3a8389467
treeb20bfdb6ed297bc29fdd338937f56612e1196072
parent8f4426aa19fcdb9326ac44154a117b1a3a5ae126
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>
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/verbs.c