opnsense-src/sys/compat/linuxkpi
Mark Johnston 21c327af86 linuxkpi: Fix an off-by-one error in the kfifo implementation
"total" is the number of slots in the array, so wraparound needs to be
done when "first" or "last" is greater than or equal to the number of
slots.

Note that no consumers of the code are currently connected to the kernel
build.

Reported by:	Stanislav Fort <stanislav.fort@aisle.com>
Reviewed by:	bz, emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56371

(cherry picked from commit 52d2fc702b85d56b35f8828fe7efca3cde0d25b7)
2026-04-30 07:39:21 +02:00
..
common linuxkpi: Fix an off-by-one error in the kfifo implementation 2026-04-30 07:39:21 +02:00
dummy/include LinuxKPI: kunit: add static_stub.h and more dummy headers 2026-01-20 08:39:11 +01:00