git: f2fd7d8bfc69 - main - ast_sig(): add missed TDAI()

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 03 Aug 2022 13:56:33 UTC
The branch main has been updated by kib:

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

commit f2fd7d8bfc6962d351bef5958bd73e9b46587c2b
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-08-03 13:42:49 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-08-03 13:56:23 +0000

    ast_sig(): add missed TDAI()
    
    Mask checked was completely wrong
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D36033
---
 sys/kern/kern_sig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index cad8cc3edf98..c62b53ecc844 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -317,7 +317,7 @@ ast_sig(struct thread *td, int tda)
 	 * p_siglist might cause process-directed signal to be handled
 	 * later.
 	 */
-	if ((tda & TDA_SIG) != 0 || p->p_pendingcnt > 0 ||
+	if ((tda & TDAI(TDA_SIG)) != 0 || p->p_pendingcnt > 0 ||
 	    !SIGISEMPTY(p->p_siglist)) {
 		sigfastblock_fetch(td);
 		PROC_LOCK(p);