summaryrefslogtreecommitdiffstats
path: root/kernel/net/ceph
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/ceph')
-rw-r--r--kernel/net/ceph/osdmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/ceph/osdmap.c b/kernel/net/ceph/osdmap.c
index 15796696d..4a3125836 100644
--- a/kernel/net/ceph/osdmap.c
+++ b/kernel/net/ceph/osdmap.c
@@ -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;