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:
bd57aea
)
RDMA/i40iw: Do not set self-referencing pointer to NULL after free
author
Ismail, Mustafa
<
[email protected]
>
Mon, 18 Apr 2016 15:32:58 +0000
(10:32 -0500)
committer
Doug Ledford
<
[email protected]
>
Thu, 28 Apr 2016 20:32:53 +0000
(16:32 -0400)
iwqp->allocated_buffer is a self-referencing pointer to iwqp.
Do not set iwqp->allocated_buffer to NULL after freeing it.
Signed-off-by: Mustafa Ismail <
[email protected]
>
Signed-off-by: Faisal Latif <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/i40iw/i40iw_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
index 2534c5d1d7ecb9dccd652e3f912541b16dfa6928..aa297365cdde501f3fe1589b9942b2146134001c 100644
(file)
--- a/
drivers/infiniband/hw/i40iw/i40iw_verbs.c
+++ b/
drivers/infiniband/hw/i40iw/i40iw_verbs.c
@@
-437,7
+437,6
@@
void i40iw_free_qp_resources(struct i40iw_device *iwdev,
kfree(iwqp->kqp.wrid_mem);
iwqp->kqp.wrid_mem = NULL;
kfree(iwqp->allocated_buffer);
- iwqp->allocated_buffer = NULL;
}
/**