IB/hns: Cq has not been freed
authorLijun Ou <oulijun@huawei.com>
Tue, 20 Sep 2016 16:07:08 +0000 (17:07 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:15 +0000 (11:43 -0400)
commit24f0c9c0ff0955c5849dfb40403a21c8c11b9d2a
treefa88fe71f5e431defb047c93b22dc3a5445f7345
parentcb814642e7e3e67f6a7c24b14531e95ccdb7c3cc
IB/hns: Cq has not been freed

Cq has not been freed when fail to ib_copy_to_udata, so need to
free it.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Peter Chen <luck.chen@huawei.com>
Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_cq.c