diff options
author | avg <avg@FreeBSD.org> | 2012-12-23 19:58:41 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-12-23 19:58:41 +0000 |
commit | 7b15f51d6899b0994f2c2769315a8a757e3ce45b (patch) | |
tree | f81883380f48336e097bc81fdc6e7dc1e78755cb /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c | |
parent | a7a75993c7299476ce9044647924e53d68258b1b (diff) | |
download | FreeBSD-src-7b15f51d6899b0994f2c2769315a8a757e3ce45b.zip FreeBSD-src-7b15f51d6899b0994f2c2769315a8a757e3ce45b.tar.gz |
zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead
To do: remove KM_ZERO declaration
Pointyhat to: avg (for mindlessly using the pseudo-flag)
MFC after: instantly (to fix stable/8 build)
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c index 5a51dee..fd0382a 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c @@ -300,8 +300,8 @@ resize_configs(nvlist_t ***configs, uint64_t *count, uint64_t id) if (id < *count) return; - new_configs = kmem_alloc((id + 1) * sizeof(nvlist_t *), - KM_SLEEP | KM_ZERO); + new_configs = kmem_zalloc((id + 1) * sizeof(nvlist_t *), + KM_SLEEP); for (i = 0; i < *count; i++) new_configs[i] = (*configs)[i]; if (*configs != NULL) |