diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c index 7d65a8114816..e69a2249ddfb 100644 --- a/net/ceph/osdmap.c +++ b/net/ceph/osdmap.c @@ -319,7 +319,7 @@ static int decode_choose_arg(void **p, void *end, struct crush_choose_arg *arg) if (arg->weight_set_size) { u32 i; - arg->weight_set = kmalloc_objs(*arg->weight_set, + arg->weight_set = kzalloc_objs(*arg->weight_set, arg->weight_set_size, GFP_NOIO); if (!arg->weight_set) return -ENOMEM;