uma: Use the correct type for a return value

zone_alloc_bucket() returns a pointer, not a bool.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2022-03-30 15:42:05 -04:00
parent 7d1ab86691
commit 54361f9020

View file

@ -4263,7 +4263,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));