Don't call callout_stop() without callout_init()
Fixes PR/41364
This commit is contained in:
parent
2760809573
commit
1130fba7b6
7
sys/dist/ipf/netinet/ip_fil_netbsd.c
vendored
7
sys/dist/ipf/netinet/ip_fil_netbsd.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ip_fil_netbsd.c,v 1.49 2009/04/19 18:08:56 tsutsui Exp $ */
|
||||
/* $NetBSD: ip_fil_netbsd.c,v 1.50 2009/05/08 05:18:34 kefren Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1993-2003 by Darren Reed.
|
||||
@ -8,7 +8,7 @@
|
||||
#if !defined(lint)
|
||||
#if defined(__NetBSD__)
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_fil_netbsd.c,v 1.49 2009/04/19 18:08:56 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_fil_netbsd.c,v 1.50 2009/05/08 05:18:34 kefren Exp $");
|
||||
#else
|
||||
static const char sccsid[] = "@(#)ip_fil.c 2.41 6/5/96 (C) 1993-2000 Darren Reed";
|
||||
static const char rcsid[] = "@(#)Id: ip_fil_netbsd.c,v 2.55.2.59 2008/03/01 23:16:38 darrenr Exp";
|
||||
@ -485,7 +485,8 @@ int ipfdetach(void)
|
||||
SPL_NET(s);
|
||||
|
||||
#if (__NetBSD_Version__ >= 104010000)
|
||||
callout_stop(&fr_slowtimer_ch);
|
||||
if (fr_running > 0)
|
||||
callout_stop(&fr_slowtimer_ch);
|
||||
#else
|
||||
untimeout(fr_slowtimer, NULL);
|
||||
#endif /* NetBSD */
|
||||
|
Loading…
Reference in New Issue
Block a user