aboutsummaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-14 00:58:39 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-14 00:58:39 +0200
commitf22235e8d190cb6467aa755dc83bf85e7e95af04 (patch)
tree1e8186de3f2028ccf53b4e1241d1c2ae095a2883 /kern
parentf4c38f0bb27cd41abef69a03495d6eaf1ac215ed (diff)
downloadgnumach-f22235e8d190cb6467aa755dc83bf85e7e95af04.tar.gz
gnumach-f22235e8d190cb6467aa755dc83bf85e7e95af04.tar.bz2
gnumach-f22235e8d190cb6467aa755dc83bf85e7e95af04.zip
slab [SLAB_VERIFY]: Fix not enabling KMEM_CF_VERIFY on 4K slabs
Diffstat (limited to 'kern')
-rw-r--r--kern/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/slab.c b/kern/slab.c
index d4b6b7a3..7cb4ee27 100644
--- a/kern/slab.c
+++ b/kern/slab.c
@@ -816,7 +816,7 @@ void kmem_cache_init(struct kmem_cache *cache, const char *name,
cache->flags = 0;
#if SLAB_VERIFY
- if (obj_size <= PAGE_SIZE - sizeof(union kmem_bufctl) + sizeof(struct kmem_buftag))
+ if (obj_size < PAGE_SIZE - sizeof(union kmem_bufctl) + sizeof(struct kmem_buftag))
cache->flags |= KMEM_CF_VERIFY;
#endif /* SLAB_VERIFY */