From 673aa7e6cff21ad5260497edfda8ad0f720ac212 Mon Sep 17 00:00:00 2001 From: Paul Dagnelie Date: Thu, 4 Aug 2022 16:53:47 -0700 Subject: [PATCH] Don't double-zero buffers in fault management nvlists This is a small cleanup for a trivial problem which happened to be noticed while another issue was being investigated. Reviewed-by: Brian Behlendorf Signed-off-by: Paul Dagnelie Closes #13730 --- module/zfs/fm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/fm.c b/module/zfs/fm.c index e06fe4af6..e7a7ad583 100644 --- a/module/zfs/fm.c +++ b/module/zfs/fm.c @@ -487,7 +487,7 @@ static void * i_fm_alloc(nv_alloc_t *nva, size_t size) { (void) nva; - return (kmem_zalloc(size, KM_SLEEP)); + return (kmem_alloc(size, KM_SLEEP)); } static void