diff mbox

[opensm] osm_opensm.c: Call cl_disp_shutdown for SA SET dispatcher

Message ID 54CF7ADC.5030706@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Hal Rosenstock Feb. 2, 2015, 1:25 p.m. UTC
From: Daniel Klein <danielk@mellanox.com>

Bug description:
OpenSM does not call cl_disp_shutdown for SA SET dispatcher

Signed-off-by: Daniel Klein <danielk@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 opensm/osm_opensm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/opensm/osm_opensm.c b/opensm/osm_opensm.c
index afa2544..62a1f3a 100644
--- a/opensm/osm_opensm.c
+++ b/opensm/osm_opensm.c
@@ -316,6 +316,8 @@  void osm_opensm_destroy(IN osm_opensm_t * p_osm)
 
 	/* shut down the dispatcher - so no new messages cross */
 	cl_disp_shutdown(&p_osm->disp);
+	if (p_osm->sa_set_disp_initialized)
+		cl_disp_shutdown(&p_osm->sa_set_disp);
 
 	/* dump SA DB */
 	if ((p_osm->sm.p_subn->sm_state == IB_SMINFO_STATE_MASTER) &&