diff options
| author | Sobczyk, Pawel <pawel.sobczyk@intel.com> | 2026-08-18 08:10:54 +0000 |
|---|---|---|
| committer | Krzysztof Galazka <kgalazka@FreeBSD.org> | 2026-08-18 08:11:12 +0000 |
| commit | 33e2eac3e3e738daa95a06f42d6c661b87ad9aac (patch) | |
| tree | 7f4446033552abb7306ab2e3189c6c7467373822 /llvm/lib/Target/(public-mirror) | |
| parent | 189ee41b6cc3b0d92c291cc854d9781afec23ad4 (diff) | |
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 'llvm/lib/Target/(public-mirror)')
0 files changed, 0 insertions, 0 deletions
