svn commit: r355171 - head/sys/kern

Jeff Roberson jeff at FreeBSD.org
Thu Nov 28 08:56:15 UTC 2019


Author: jeff
Date: Thu Nov 28 08:56:14 2019
New Revision: 355171
URL: https://svnweb.freebsd.org/changeset/base/355171

Log:
  Fix DEBUG_REDZONE build after r355169

Modified:
  head/sys/kern/kern_malloc.c

Modified: head/sys/kern/kern_malloc.c
==============================================================================
--- head/sys/kern/kern_malloc.c	Thu Nov 28 08:47:36 2019	(r355170)
+++ head/sys/kern/kern_malloc.c	Thu Nov 28 08:56:14 2019	(r355171)
@@ -834,6 +834,7 @@ realloc(void *addr, size_t size, struct malloc_type *m
 
 #ifdef DEBUG_REDZONE
 	slab = NULL;
+	zone = NULL;
 	alloc = redzone_get_size(addr);
 #else
 	vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab);


More information about the svn-src-all mailing list