Date: Thu, 7 Apr 2022 00:31:08 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 229eff21b725 - stable/13 - uma: Use the correct type for a return value Message-ID: <202204070031.2370V8o2073903@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204070031.2370V8o2073903>