projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a568814
)
RDMA/siw: Release xarray entry
author
Leon Romanovsky
<leonro@nvidia.com>
Sun, 9 May 2021 11:41:38 +0000
(14:41 +0300)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Mon, 10 May 2021 17:06:45 +0000
(14:06 -0300)
The xarray entry is allocated in siw_qp_add(), but release was
missed in case zero-sized SQ was discovered.
Fixes:
661f385961f0
("RDMA/siw: Fix handling of zero-sized Read and Receive Queues.")
Link:
https://lore.kernel.org/r/f070b59d5a1114d5a4e830346755c2b3f141cde5.1620560472.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/siw/siw_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/siw/siw_verbs.c
b/drivers/infiniband/sw/siw/siw_verbs.c
index
917c8a9
..
3f175f2
100644
(file)
--- a/
drivers/infiniband/sw/siw/siw_verbs.c
+++ b/
drivers/infiniband/sw/siw/siw_verbs.c
@@
-375,7
+375,7
@@
struct ib_qp *siw_create_qp(struct ib_pd *pd,
else {
/* Zero sized SQ is not supported */
rv = -EINVAL;
- goto err_out;
+ goto err_out
_xa
;
}
if (num_rqe)
num_rqe = roundup_pow_of_two(num_rqe);