Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2018 09:39:04 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Matt Macy <mmacy@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r334314 - head/sys/net
Message-ID:  <f41eacb6-c16e-ffae-1a0b-286aed14923e@selasky.org>
In-Reply-To: <201805290714.w4T7EwCI044326@repo.freebsd.org>
References:  <201805290714.w4T7EwCI044326@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/29/18 09:14, Matt Macy wrote:
> Author: mmacy
> Date: Tue May 29 07:14:57 2018
> New Revision: 334314
> URL: https://svnweb.freebsd.org/changeset/base/334314
> 
> Log:
>    rt_getifa_fib: don't use ifa but info->rti_ifa
>    
>    Reported by:	kp
> 
> Modified:
>    head/sys/net/route.c
> 
> Modified: head/sys/net/route.c
> ==============================================================================
> --- head/sys/net/route.c	Tue May 29 04:23:21 2018	(r334313)
> +++ head/sys/net/route.c	Tue May 29 07:14:57 2018	(r334314)
> @@ -1308,7 +1308,7 @@ rt_getifa_fib(struct rt_addrinfo *info, u_int fibnum)
>   	}
>   	if (needref && info->rti_ifa != NULL) {
>   		if (info->rti_ifp == NULL)
> -			info->rti_ifp = ifa->ifa_ifp;
> +			info->rti_ifp = info->rti_ifa->ifa_ifp;
>   		ifa_ref(info->rti_ifa);
>   	} else
>   		error = ENETUNREACH;
> 
> 

Hi,

This and the previous commit solves the panics I see.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f41eacb6-c16e-ffae-1a0b-286aed14923e>