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:
c1cc72c
)
IB/rdmavt: Don't vfree a kzalloc'ed memory region
author
Colin Ian King
<
[email protected]
>
Fri, 9 Sep 2016 07:15:37 +0000
(08:15 +0100)
committer
Doug Ledford
<
[email protected]
>
Fri, 16 Sep 2016 18:14:23 +0000
(14:14 -0400)
The userspace memory region 'mr' is allocated with kzalloc in
__rvt_alloc_mr however it is incorrectly being freed with vfree in
__rvt_free_mr. Fix this by using kfree to free it.
Signed-off-by: Colin Ian King <
[email protected]
>
Reviewed-by: Leon Romanovsky <
[email protected]
>
Acked-by: Dennis Dalessandro <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/sw/rdmavt/mr.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/rdmavt/mr.c
b/drivers/infiniband/sw/rdmavt/mr.c
index 80c4b6b401b83af99d8a1dde1ada784daeb8b6cb..46b64970058ece11bf3c272ca5fb80d3c1cabff6 100644
(file)
--- a/
drivers/infiniband/sw/rdmavt/mr.c
+++ b/
drivers/infiniband/sw/rdmavt/mr.c
@@
-294,7
+294,7
@@
static void __rvt_free_mr(struct rvt_mr *mr)
{
rvt_deinit_mregion(&mr->mr);
rvt_free_lkey(&mr->mr);
-
v
free(mr);
+
k
free(mr);
}
/**