From: ftillier Date: Wed, 16 Nov 2005 17:25:13 +0000 (+0000) Subject: [IBAL] Fix crash when creating a MAD service with duplicate X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1c495aec63f5b401d61f53914b9ada0dd9b7c49e;p=~shefty%2Frdma-win.git [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 --- 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 );