projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2f5e73
)
RDMA/nes: Fix slab corruption
author
Chien Tung
<ctung@neteffect.com>
Fri, 10 Oct 2008 00:41:05 +0000
(17:41 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Fri, 10 Oct 2008 00:41:05 +0000
(17:41 -0700)
Referencing cm_node after it is freed via rem_ref_cm_node() causes a
slab corruption. There is no need to set cm_node->cm_id to NULL in
mini_cm_close().
Signed-off-by: Chien Tung <ctung@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/nes/nes_cm.c
b/drivers/infiniband/hw/nes/nes_cm.c
index d69226d7102eaa660321c4cbca6e914f9a4f8f21..2caf9da81ad50d6db5db8bce1c24cb21c2bf46d5 100644
(file)
--- a/
drivers/infiniband/hw/nes/nes_cm.c
+++ b/
drivers/infiniband/hw/nes/nes_cm.c
@@
-2029,7
+2029,6
@@
static int mini_cm_close(struct nes_cm_core *cm_core, struct nes_cm_node *cm_nod
ret = rem_ref_cm_node(cm_core, cm_node);
break;
}
- cm_node->cm_id = NULL;
return ret;
}