summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/strplumb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/strplumb.c b/usr/src/uts/common/io/strplumb.c
index 0a5ba559ed..4e735f2dce 100644
--- a/usr/src/uts/common/io/strplumb.c
+++ b/usr/src/uts/common/io/strplumb.c
@@ -759,7 +759,7 @@ strplumb_get_netdev_path(void)
(void) bcopy(bootp + 28, boot_macaddr, boot_maclen);
/* encode to ascii string to match what sparc OBP exports */
- dhcack = kmem_alloc(bootp_len * 2 + IFNAMSIZ + 2, KM_SLEEP);
+ dhcack = kmem_zalloc(bootp_len * 2 + IFNAMSIZ + 2, KM_SLEEP);
(void) octet_to_hexascii(bootp, bootp_len, dhcack + IFNAMSIZ,
&len);
ASSERT(len < bootp_len * 2 + 2);