From owner-p4-projects@FreeBSD.ORG Wed Oct 15 14:04:41 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A1C5316A4C0; Wed, 15 Oct 2003 14:04:41 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7934316A4B3 for ; Wed, 15 Oct 2003 14:04:41 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E266943FAF for ; Wed, 15 Oct 2003 14:04:40 -0700 (PDT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9FL4eXJ007537 for ; Wed, 15 Oct 2003 14:04:40 -0700 (PDT) (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9FL4eWH007534 for perforce@freebsd.org; Wed, 15 Oct 2003 14:04:40 -0700 (PDT) (envelope-from sam@freebsd.org) Date: Wed, 15 Oct 2003 14:04:40 -0700 (PDT) Message-Id: <200310152104.h9FL4eWH007534@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Subject: PERFORCE change 39762 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 21:04:42 -0000 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); } /*