git: 229eff21b725 - stable/13 - uma: Use the correct type for a return value
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Apr 2022 00:31:08 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=229eff21b725fbfac04ff2c2d3fea9ecd1391bed
commit 229eff21b725fbfac04ff2c2d3fea9ecd1391bed
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-03-30 19:42:05 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-04-07 00:30:45 +0000
uma: Use the correct type for a return value
zone_alloc_bucket() returns a pointer, not a bool.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 54361f9020bf4d57fd700033476561f9c88942de)
---
sys/vm/uma_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index d4c9906cc106..211198d02d04 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -4177,7 +4177,7 @@ zone_alloc_bucket(uma_zone_t zone, void *udata, int domain, int flags)
else
maxbucket = zone->uz_bucket_size;
if (maxbucket == 0)
- return (false);
+ return (NULL);
/* Don't wait for buckets, preserve caller's NOVM setting. */
bucket = bucket_alloc(zone, udata, M_NOWAIT | (flags & M_NOVM));