commit | a75badebfdc0b3823054bedf112edb54d6357c75 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Jan 18 12:11:04 2022 +0300 |
committer | Jason Gunthorpe <jgg@nvidia.com> | Fri Jan 28 11:41:17 2022 -0400 |
tree | 8340847ceff3edc2298379df666e9d8d48c8cedd | |
parent | 36e8169ec973359f671f9ec7213547059cae972e [diff] |
RDMA/siw: Fix refcounting leak in siw_create_qp() The atomic_inc() needs to be paired with an atomic_dec() on the error path. Fixes: 514aee660df4 ("RDMA: Globally allocate and release QP memory") Link: https://lore.kernel.org/r/20220118091104.GA11671@kili Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>