|
@@ -89,7 +89,7 @@ static int crush_decode_tree_bucket(void **p, void *end,
|
|
|
{
|
|
|
int j;
|
|
|
dout("crush_decode_tree_bucket %p to %p\n", *p, end);
|
|
|
- ceph_decode_32_safe(p, end, b->num_nodes, bad);
|
|
|
+ ceph_decode_8_safe(p, end, b->num_nodes, bad);
|
|
|
b->node_weights = kcalloc(b->num_nodes, sizeof(u32), GFP_NOFS);
|
|
|
if (b->node_weights == NULL)
|
|
|
return -ENOMEM;
|