git: ff80ab1cebd6 - main - powerpc: slb_alloc_user_cache: fix missing uma_zalloc wait flag

From: Alfredo Dal'Ava Junior <alfredo_at_FreeBSD.org>
Date: Mon, 03 Oct 2022 20:56:24 UTC
The branch main has been updated by alfredo:

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

commit ff80ab1cebd61d08598fd248fb6e70782ba72e4a
Author:     Alfredo Dal'Ava Junior <alfredo@FreeBSD.org>
AuthorDate: 2022-10-03 23:22:14 +0000
Commit:     Alfredo Dal'Ava Junior <alfredo@FreeBSD.org>
CommitDate: 2022-10-03 23:56:41 +0000

    powerpc: slb_alloc_user_cache: fix missing uma_zalloc wait flag
    
    Flags should be M_WAITOK | M_ZERO instead of just M_ZERO
    
    Reviewed by:    markj
    MFC after:      2 days
    Sponsored by:   Instituto de Pesquisas Eldorado (eldorado.org.br)
    Differential Revision:  https://reviews.freebsd.org/D36865
---
 sys/powerpc/aim/slb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/powerpc/aim/slb.c b/sys/powerpc/aim/slb.c
index c107fcbcfc43..fb198072730a 100644
--- a/sys/powerpc/aim/slb.c
+++ b/sys/powerpc/aim/slb.c
@@ -535,7 +535,7 @@ slb_zone_init(void *dummy)
 struct slb **
 slb_alloc_user_cache(void)
 {
-	return (uma_zalloc(slb_cache_zone, M_ZERO));
+	return (uma_zalloc(slb_cache_zone, M_WAITOK | M_ZERO));
 }
 
 void