diff options
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 5290d90..af317f0 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -599,9 +599,9 @@ mtx_init(struct mtx *m, const char *t, int flag) #endif /* XXX - should not use DEVBUF */ - debug = malloc(sizeof(struct mtx_debug), M_DEVBUF, M_NOWAIT); + debug = malloc(sizeof(struct mtx_debug), M_DEVBUF, + M_NOWAIT | M_ZERO); MPASS(debug != NULL); - bzero(debug, sizeof(struct mtx_debug)); } #endif bzero((void *)m, sizeof *m); |