Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Aug 2003 14:20:46 -0700 (PDT)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 37038 for review
Message-ID:  <200308272120.h7RLKk1G024064@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=37038

Change 37038 by sam@sam_ebb on 2003/08/27 14:20:07

	remove explicit unlocks before destroying the mutex; whatever
	caused the panic's appears to be fixed

Affected files ...

.. //depot/projects/netperf/sys/net/route.c#6 edit

Differences ...

==== //depot/projects/netperf/sys/net/route.c#6 (text+ko) ====

@@ -275,7 +275,6 @@
 		/*
 		 * and the rtentry itself of course
 		 */
-		RT_UNLOCK(rt);
 		RT_LOCK_DESTROY(rt);
 		Free(rt);
 		return;
@@ -649,7 +648,6 @@
 		 */
 		RT_LOCK(rt);
 		if ((error = rt_setgate(rt, dst, gateway)) != 0) {
-			RT_UNLOCK(rt);
 			RT_LOCK_DESTROY(rt);
 			Free(rt);
 			senderr(error);
@@ -713,7 +711,6 @@
 			if (rt->rt_ifa)
 				IFAFREE(rt->rt_ifa);
 			Free(rt_key(rt));
-			RT_UNLOCK(rt);
 			RT_LOCK_DESTROY(rt);
 			Free(rt);
 			senderr(EEXIST);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308272120.h7RLKk1G024064>