freebsd-src/tests/sys
Kristof Provost bdd12889ea if_vlan: handle VID conflicts
If we fail to change the vlan id we have to undo the removal (and vlan id
change) in the error path. Otherwise we'll have removed the vlan object from the
hash table, and have the wrong vlan id as well. Subsequent modification attempts
will then try to remove an entry which doesn't exist, and panic.

Undo the vlan id modification if the insertion in the hash table fails, and
re-insert it under the original vlan id.

PR:		279195
Reviewed by:	zlei
MFC atfer:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D45285
2024-05-22 09:08:02 +02:00
..
acl dirdeps: Update Makefile.depend* files with empty contents 2023-10-29 17:01:04 -04:00
aio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
audit Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
auditpipe Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
capsicum tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
cddl zfs tests: Silence clang warning 2023-12-04 12:22:14 -05:00
common tests: Use ifconfig -j instead of jexec ifconfig. 2023-10-06 18:40:07 +02:00
compat32 tests: Don't recurse into sys/compat32 2023-05-16 02:06:34 +01:00
devrandom tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
fifo tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
file path_test: fix cap_rights_init usage 2024-02-15 08:58:39 -05:00
fs fusefs: make the tests more robust to changes to maxphys 2024-05-09 11:09:23 -06:00
geom geli: allocate a UMA pool earlier 2024-05-19 14:53:17 +02:00
kern tests/sendfile: test operation on unix/stream socket 2024-05-03 07:45:07 -07:00
kqueue kqueue tests: Add a regression test 2024-01-27 13:51:13 -05:00
mac tests: Skip all tests that require mdconfig when /dev/mdctl missing 2023-09-02 13:16:22 -06:00
mqueue Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
net if_vlan: handle VID conflicts 2024-05-22 09:08:02 +02:00
netgraph tests/netgraph: start ng_ksocket(4) tests 2024-03-22 22:44:16 -07:00
netinet netinet tests: basic VRRP tests 2024-05-08 13:19:04 +02:00
netinet6 netinet6 tests: Restore an atf_check invocation 2024-01-27 13:51:14 -05:00
netipsec Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netlink tests/netlink: improve recently added netlink_socket:membership 2024-01-10 20:51:53 -08:00
netmap netmap: fix unit tests 2023-12-29 07:46:46 +00:00
netpfil pf tests: fix REQUIRED_MODULES typo 2024-05-03 09:51:37 +02:00
opencrypto Revert "cdefs: Remove __func__ define" 2023-11-27 14:59:54 -07:00
pjdfstest Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
posixshm posixshm largepage_mmap: fix a racy test 2024-01-03 16:39:53 +00:00
ses Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sys bitstring: Support large bit strings. 2023-11-22 23:30:03 +01:00
vfs tests: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
vm soxstack: slience 32-bit gcc warning 2024-05-08 15:51:17 +01:00
vmm spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00