Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2003 14:04:40 -0700 (PDT)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 39762 for review
Message-ID:  <200310152104.h9FL4eWH007534@repoman.freebsd.org>

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

Change 39762 by sam@sam_ebb on 2003/10/15 14:04:23

	rtalloc1 may return NULL for a route so check before unlocking
	
	This should fix the panic reported by Yoshihide Sonoda when setting
	up an IPv6 ppp tunnel (waiting for confirmation).

Affected files ...

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

Differences ...

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

@@ -1000,7 +1000,8 @@
 			rt->rt_gwroute = 0;
 			return EDQUOT; /* failure */
 		}
-		RT_UNLOCK(rt->rt_gwroute);
+		if (rt->rt_gwroute != NULL)
+			RT_UNLOCK(rt->rt_gwroute);
 	}
 
 	/*



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