git: 05bc70bab4ff - stable/14 - x86: do not leak msi_lock in msix_alloc() on iommu remapping failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Nov 2024 00:40:06 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=05bc70bab4ff1dcc3eec8d9c47d469f78c08ba9e commit 05bc70bab4ff1dcc3eec8d9c47d469f78c08ba9e Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-10-27 01:39:58 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-11-03 00:39:43 +0000 x86: do not leak msi_lock in msix_alloc() on iommu remapping failure (cherry picked from commit 439fa16e1fd35181898b61264b205bf3b7103a41) --- 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 c8e7db9469ed..9d5a51f9753c 100644 --- a/sys/x86/x86/msi.c +++ b/sys/x86/x86/msi.c @@ -723,6 +723,7 @@ again: if (error != 0) { msi->msi_dev = NULL; apic_free_vector(cpu, vector, i); + mtx_unlock(&msi_lock); return (error); } msi->msi_remap_cookie = cookie;