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:
00b7c2a
)
IB/mlx5: Fix wrong use of kfree at bad flow in create_cq_user
author
Bodong Wang
<
[email protected]
>
Wed, 29 Mar 2017 03:12:14 +0000
(06:12 +0300)
committer
Doug Ledford
<
[email protected]
>
Fri, 21 Apr 2017 16:26:05 +0000
(12:26 -0400)
The kfree was called to free cqb, while it should free *cqb.
Fixes: 1cbe6fc86ccf ("IB/mlx5: Add support for CQE compressing")
Signed-off-by: Bodong Wang <
[email protected]
>
Signed-off-by: Leon Romanovsky <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/mlx5/cq.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx5/cq.c
b/drivers/infiniband/hw/mlx5/cq.c
index 31803b3671040b6595e73c77d7905fbc778994e1..5a31cec947fa8e360853bc0c71c1e90161013908 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/cq.c
+++ b/
drivers/infiniband/hw/mlx5/cq.c
@@
-818,7
+818,7
@@
static int create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata,
return 0;
err_cqb:
- kfree(cqb);
+ kfree(
*
cqb);
err_db:
mlx5_ib_db_unmap_user(to_mucontext(context), &cq->db);