From 1c495aec63f5b401d61f53914b9ada0dd9b7c49e Mon Sep 17 00:00:00 2001 From: ftillier Date: Wed, 16 Nov 2005 17:25:13 +0000 Subject: [PATCH] [IBAL] Fix crash when creating a MAD service with duplicate settings to an existing one. git-svn-id: svn://openib.tc.cornell.edu/gen1@153 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/core/al/al_mad.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/trunk/core/al/al_mad.c b/trunk/core/al/al_mad.c index 6c9d1e73..a76b7eb2 100644 --- a/trunk/core/al/al_mad.c +++ b/trunk/core/al/al_mad.c @@ -1256,13 +1256,16 @@ __destroying_mad_svc( * Since the MAD service is being destroyed, the user cannot be issuing * sends. */ + if( h_mad_svc->h_mad_reg ) + { #ifdef CL_KERNEL - old_irql = KeRaiseIrqlToDpcLevel(); + old_irql = KeRaiseIrqlToDpcLevel(); #endif - __check_send_queue( h_mad_svc ); + __check_send_queue( h_mad_svc ); #ifdef CL_KERNEL - KeLowerIrql( old_irql ); + KeLowerIrql( old_irql ); #endif + } cl_timer_destroy( &h_mad_svc->send_timer ); -- 2.41.0