aboutsummaryrefslogtreecommitdiff
path: root/lib/libpfctl/(developers-only)
diff options
context:
space:
mode:
authorSobczyk, Pawel <pawel.sobczyk@intel.com>2026-08-18 08:10:54 +0000
committerKrzysztof Galazka <kgalazka@FreeBSD.org>2026-08-18 08:11:12 +0000
commit33e2eac3e3e738daa95a06f42d6c661b87ad9aac (patch)
tree7f4446033552abb7306ab2e3189c6c7467373822 /lib/libpfctl/(developers-only)
parent189ee41b6cc3b0d92c291cc854d9781afec23ad4 (diff)
ix(4): Sanitize negative error codesHEADmain
Due to development history FreeBSD driver error codes are reported the same way as in Linux (as negatives) which is inconsistent with FreeBSD standard. It may cause unexpected behavior when driver errors are interpreted by a kernel as syscall handler return values. This patch converts error codes from negative to positive values for NVM access functions. Signed-off-by: Pawel Sobczyk <pawel.sobczyk@intel.com> Reviewed by: kbowling, erj, milosz.linkiewicz_intel.com Tested by: Mateusz Moga <mateusz.moga@intel.com> MFC after: 1 week Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D57642
Diffstat (limited to 'lib/libpfctl/(developers-only)')
0 files changed, 0 insertions, 0 deletions