freebsd-dev/sys
Mitchell Horne a84bf5eaa1 debugnet: fix an errant assertion
We may call debugnet_free() before g_debugnet_pcb_inuse is true,
specifically in the cases where the interface is down or does not
support debugnet. pcb->dp_drv_input is used to hold the real driver
if_input callback while debugnet is in use, so we can check the status
of this field in the assertion.

This can be triggered trivially by trying to configure netdump on an
unsupported interface at the ddb prompt.

Initializing the dp_drv_input field to NULL explicitly is not necessary
but helps display the intent.

PR:		263929
Reported by:	Martin Filla <freebsd@sysctl.cz>
Reviewed by:	cem, markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D35179
2022-05-14 10:27:53 -03:00
..
amd64 kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
arm kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
arm64 kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
bsm
cam kerneldump: remove physical argument from d_dumper 2022-05-13 10:42:48 -03:00
cddl stand/zfs: Fix const-qual warnings 2022-05-04 10:06:21 -04:00
compat LinuxKPI: Implement linux/hashtable.h for FreeBSD. 2022-05-12 16:32:47 +02:00
conf Add FDT attachment driver for ARM System MMU v3.2 controller. 2022-05-07 11:18:35 +01:00
contrib vchiq: Remove unused devclass argument to DRIVER_MODULE. 2022-05-10 10:21:39 -07:00
crypto crypto: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
ddb kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
dev kerneldump: remove physical argument from d_dumper 2022-05-13 10:42:48 -03:00
dts
fs fusefs: handle evil servers that return illegal inode numbers 2022-05-12 14:32:26 -06:00
gdb
geom kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-04 09:32:59 -04:00
i386 kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
isa isa: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:59 -07:00
kern sysvsem: Fix a typo 2022-05-14 14:07:20 +03:00
kgssapi kgssapi krb5: Remove unused variables. 2022-04-06 16:45:29 -07:00
libkern libkern: Fix two typos in source code comments 2022-04-09 09:36:34 +02:00
modules linux(4): Implement vdso getcpu for x86. 2022-05-08 17:20:52 +03:00
net debugnet: fix an errant assertion 2022-05-14 10:27:53 -03:00
net80211 net80211: simplify code after STA/AP VAPs traffic hang fix 2022-05-06 09:34:16 +00:00
netgraph ng_ubt: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-09 12:22:03 -07:00
netinet mbuf: remove PH_vt alias for mbuf packet header persistent shared data 2022-05-13 13:32:43 -07:00
netinet6 mbuf: remove PH_vt alias for mbuf packet header persistent shared data 2022-05-13 13:32:43 -07:00
netipsec ipsec_encap: setdf is only used for INET. 2022-04-13 16:08:21 -07:00
netpfil pf: fix pf_rule_to_actions() 2022-05-12 21:50:10 +02:00
netsmb smb_smb_treedisconnect: eliminate write only variable mbp 2022-04-04 22:30:57 -06:00
nfs nfs: do not panic on bootpc_init when no interfaces are found 2022-04-07 19:33:26 -03:00
nfsclient
nfsserver
nlm
ofed sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
opencrypto crypto: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
powerpc kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
riscv kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
rpc sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
security mac_pimd: Support for privilege drop in pimd 2022-04-20 08:07:37 +02:00
sys Merge llvm-project release/14.x llvmorg-14.0.3-0-g1f9140064dfb 2022-05-14 13:46:42 +02:00
teken teken: color #3 is yellow not brown - use TC_YELLOW as the name 2022-03-12 09:17:29 -05:00
tests
tools syscallarg_t: Add a type for system call arguments 2022-03-28 19:43:03 +01:00
ufs UFS: clear fs_fmod once more, in the buffer data copy. 2022-05-09 23:46:05 +03:00
vm vm_phys: avoid waste in multipage allocation 2022-04-26 02:56:23 -05:00
x86 linux(4): Implement vdso getcpu for x86. 2022-05-08 17:20:52 +03:00
xdr
xen xen: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
Makefile