mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
MFV r316693:
8046 Let calloc() do the multiplication in libzfs_fru_refresh
5697e03e6e
https://www.illumos.org/issues/8046
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Pedro Giffuni <pfg@freebsd.org>
MFC after: 3 days
This commit is contained in:
commit
9e98194646
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316695
@ -282,7 +282,7 @@ libzfs_fru_refresh(libzfs_handle_t *hdl)
|
||||
|
||||
if (hdl->libzfs_fru_hash == NULL &&
|
||||
(hdl->libzfs_fru_hash =
|
||||
calloc(ZFS_FRU_HASH_SIZE * sizeof (void *), 1)) == NULL)
|
||||
calloc(ZFS_FRU_HASH_SIZE, sizeof (void *))) == NULL)
|
||||
return;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user