[openib-general] [PATCH] Opensm - fix segfault on exit - cont.
Yael Kalka
yael at mellanox.co.il
Mon Dec 19 01:19:39 PST 2005
Hi Hal,
I've noticed that under certain operating systems, when driver isn't
loaded, the SM still exits with segfault.
The following patch fixes this.
Thanks,
Yael
Signed-off-by: Yael Kalka <yael at mellanox.co.il>
Index: libvendor/osm_vendor_ibumad.c
===================================================================
--- libvendor/osm_vendor_ibumad.c (revision 4522)
+++ libvendor/osm_vendor_ibumad.c (working copy)
@@ -552,7 +552,7 @@ osm_vendor_delete(
/* umad receiver thread ? */
p_ur = (*pp_vend)->receiver;
- if (&p_ur->signal)
+ if (&p_ur->signal != NULL)
cl_event_destroy( &p_ur->signal );
cl_spinlock_destroy( &(*pp_vend)->cb_lock );
cl_spinlock_destroy( &(*pp_vend)->match_tbl_lock );
More information about the general
mailing list