projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c46191
)
IB/mlx5: Fix memory leak in mlx5_ib_create_srq
author
Moshe Lazer
<
[email protected]
>
Wed, 11 Sep 2013 13:35:24 +0000
(16:35 +0300)
committer
Roland Dreier
<
[email protected]
>
Thu, 10 Oct 2013 16:23:55 +0000
(09:23 -0700)
The patch fixes the rollback in case of failure in creating SRQ.
Signed-off-by: Moshe Lazer <
[email protected]
>
Signed-off-by: Eli Cohen <
[email protected]
>
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/infiniband/hw/mlx5/srq.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx5/srq.c
b/drivers/infiniband/hw/mlx5/srq.c
index 84d297afd6a9889642007a4b3d6b2e0e6e25be74..0aa478bc291ae39aec0ed8c243cce72fe7ed2bdd 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/srq.c
+++ b/
drivers/infiniband/hw/mlx5/srq.c
@@
-295,7
+295,7
@@
struct ib_srq *mlx5_ib_create_srq(struct ib_pd *pd,
mlx5_vfree(in);
if (err) {
mlx5_ib_dbg(dev, "create SRQ failed, err %d\n", err);
- goto err_srq;
+ goto err_
usr_kern_
srq;
}
mlx5_ib_dbg(dev, "create SRQ with srqn 0x%x\n", srq->msrq.srqn);
@@
-316,6
+316,8
@@
struct ib_srq *mlx5_ib_create_srq(struct ib_pd *pd,
err_core:
mlx5_core_destroy_srq(&dev->mdev, &srq->msrq);
+
+err_usr_kern_srq:
if (pd->uobject)
destroy_srq_user(pd, srq);
else