git: 5efac4a9049a - releng/15.1 - amd64/vmm: Fix ppt_unmap_mmio() after commit 36b855f18925
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 May 2026 22:16:10 UTC
The branch releng/15.1 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=5efac4a9049a2a3a26e56cae19ab6acb1240d6dc
commit 5efac4a9049a2a3a26e56cae19ab6acb1240d6dc
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-05-22 22:18:05 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-05-28 22:15:39 +0000
amd64/vmm: Fix ppt_unmap_mmio() after commit 36b855f18925
Approved by: re (cperciva)
Fixes: 36b855f18925 ("amd64/vmm: Lock global PCI passthrough structures")
MFC after: 3 days
Reported by: bz
(cherry picked from commit b133353310920aa823b1b5f83a308d0762f3bba3)
(cherry picked from commit deea28af8dced91b7aa50dadc28ec47ca3f1d478)
---
sys/amd64/vmm/io/ppt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/amd64/vmm/io/ppt.c b/sys/amd64/vmm/io/ppt.c
index b522e18e3b24..162f26796b33 100644
--- a/sys/amd64/vmm/io/ppt.c
+++ b/sys/amd64/vmm/io/ppt.c
@@ -577,7 +577,7 @@ ppt_unmap_mmio(struct vm *vm, int bus, int slot, int func,
}
out:
PPT_UNLOCK();
- return (ENOENT);
+ return (error);
}
static int