Fix coverity defects: CID 154591

CID 154591: Incorrect expression (SIZEOF_MISMATCH)

Reviewed-by: Gvozden Neskovic <neskovic@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn>
Closes #5435
This commit is contained in:
luozhengzheng 2016-12-01 01:48:01 +08:00 committed by Brian Behlendorf
parent 616fa7c02b
commit 2d44b04b79

View File

@ -447,7 +447,7 @@ vdev_cmd_data_list_t *
all_pools_for_each_vdev_run(int argc, char **argv, char *cmd)
{
vdev_cmd_data_list_t *vcdl;
vcdl = safe_malloc(sizeof (vcdl));
vcdl = safe_malloc(sizeof (vdev_cmd_data_list_t));
vcdl->cmd = cmd;
/* Gather our list of all vdevs in all pools */