From: yasuoka Date: Thu, 8 Dec 2022 05:45:36 +0000 (+0000) Subject: Fix pvbus to specify M_ZERO properly. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a962230cfad4e3e61d51043284c2b63fcce27c94;p=openbsd Fix pvbus to specify M_ZERO properly. ok kn mvs mlarkin asou deraadt --- diff --git a/sys/dev/pv/pvbus.c b/sys/dev/pv/pvbus.c index 85903647a82..5f7c4b57fe0 100644 --- a/sys/dev/pv/pvbus.c +++ b/sys/dev/pv/pvbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pvbus.c,v 1.25 2022/08/25 17:38:16 cheloha Exp $ */ +/* $OpenBSD: pvbus.c,v 1.26 2022/12/08 05:45:36 yasuoka Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -408,7 +408,7 @@ pvbusgetstr(size_t srclen, const char *src, char **dstp) else if (srclen > PAGE_SIZE) return (ENAMETOOLONG); - *dstp = dst = malloc(srclen + 1, M_TEMP|M_ZERO, M_WAITOK); + *dstp = dst = malloc(srclen + 1, M_TEMP, M_WAITOK | M_ZERO); if (src != NULL) { error = copyin(src, dst, srclen); dst[srclen] = '\0';