git: 1c65ea28841a - stable/14 - efirt: Fix the TDP_EFIRT assertion

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 28 Nov 2024 13:30:11 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=1c65ea28841ae709f199680296004d6b81bfa375

commit 1c65ea28841ae709f199680296004d6b81bfa375
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-11-22 14:19:37 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-11-28 12:53:17 +0000

    efirt: Fix the TDP_EFIRT assertion
    
    (cherry picked from commit 07593d13fa2ad6fe4d962b7473c6020aef2a0414)
---
 sys/dev/efidev/efirt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/efidev/efirt.c b/sys/dev/efidev/efirt.c
index 92ffeae12734..a74ce9fa9a06 100644
--- a/sys/dev/efidev/efirt.c
+++ b/sys/dev/efidev/efirt.c
@@ -323,7 +323,7 @@ efi_leave(void)
 	pmap_t curpmap;
 
 	td = curthread;
-	MPASS((td->td_pflags2 & TDP2_EFIRT) == 0);
+	MPASS((td->td_pflags2 & TDP2_EFIRT) != 0);
 	td->td_pflags2 &= ~TDP2_EFIRT;
 
 	efi_arch_leave();