* [PATCH 1/1] OpenSM: osm_ucast_dfsssp.c - prevent double free error
@ 2014-02-04 12:18 Jens Domke
2014-02-04 13:44 ` Hal Rosenstock
0 siblings, 1 reply; 2+ messages in thread
From: Jens Domke @ 2014-02-04 12:18 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Hal Rosenstock
an error in the routing execution can cause a second
free() call on sw_list, which results in a 'double free' error
Signed-off-by: Jens Domke <domke.j.aa@m.titech.ac.jp>
---
opensm/osm_ucast_dfsssp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/opensm/osm_ucast_dfsssp.c b/opensm/osm_ucast_dfsssp.c
index 5eaff3d..ec69df0 100644
--- a/opensm/osm_ucast_dfsssp.c
+++ b/opensm/osm_ucast_dfsssp.c
@@ -2382,6 +2382,7 @@ static int dfsssp_do_dijkstra_routing(void *context)
/* the intermediate array lived long enough */
free(sw_list);
+ sw_list = NULL;
/* same is true for the compute node and I/O guid map */
destroy_guid_map(&cn_tbl);
cn_nodes_provided = FALSE;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-04 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 12:18 [PATCH 1/1] OpenSM: osm_ucast_dfsssp.c - prevent double free error Jens Domke
2014-02-04 13:44 ` Hal Rosenstock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox