aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mon_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/mon_client.c')
-rw-r--r--fs/ceph/mon_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/mon_client.c b/fs/ceph/mon_client.c
index d6c8e783467e..bea2be9077e4 100644
--- a/fs/ceph/mon_client.c
+++ b/fs/ceph/mon_client.c
@@ -45,9 +45,9 @@ struct ceph_monmap *ceph_monmap_decode(void *p, void *end)
45 45
46 ceph_decode_need(&p, end, sizeof(fsid) + 2*sizeof(u32), bad); 46 ceph_decode_need(&p, end, sizeof(fsid) + 2*sizeof(u32), bad);
47 ceph_decode_copy(&p, &fsid, sizeof(fsid)); 47 ceph_decode_copy(&p, &fsid, sizeof(fsid));
48 ceph_decode_32(&p, epoch); 48 epoch = ceph_decode_32(&p);
49 49
50 ceph_decode_32(&p, num_mon); 50 num_mon = ceph_decode_32(&p);
51 ceph_decode_need(&p, end, num_mon*sizeof(m->mon_inst[0]), bad); 51 ceph_decode_need(&p, end, num_mon*sizeof(m->mon_inst[0]), bad);
52 52
53 if (num_mon >= CEPH_MAX_MON) 53 if (num_mon >= CEPH_MAX_MON)