git: 3ff2b417a0c1 - stable/14 - msi_alloc(): do not leak msi_lock in error case
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Sep 2024 08:44:37 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=3ff2b417a0c193379a982b9b95e1d52456c0efe3
commit 3ff2b417a0c193379a982b9b95e1d52456c0efe3
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-08-27 02:28:10 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-11 08:44:00 +0000
msi_alloc(): do not leak msi_lock in error case
(cherry picked from commit 5681ddfd9f80c3aa25f900a1bcaa69b36a4e9e27)
---
sys/x86/x86/msi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/x86/x86/msi.c b/sys/x86/x86/msi.c
index 888635cba3f4..177bd7868ec4 100644
--- a/sys/x86/x86/msi.c
+++ b/sys/x86/x86/msi.c
@@ -480,6 +480,7 @@ again:
if (error != 0) {
for (i = 0; i < count; i++)
apic_free_vector(cpu, vector + i, irqs[i]);
+ mtx_unlock(&msi_lock);
free(mirqs, M_MSI);
return (error);
}