diff options
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r-- | fs/ceph/mds_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index a5a735422aa7..1bcf712655d9 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c | |||
@@ -2625,7 +2625,8 @@ static void check_new_map(struct ceph_mds_client *mdsc, | |||
2625 | ceph_mdsmap_is_laggy(newmap, i) ? " (laggy)" : "", | 2625 | ceph_mdsmap_is_laggy(newmap, i) ? " (laggy)" : "", |
2626 | session_state_name(s->s_state)); | 2626 | session_state_name(s->s_state)); |
2627 | 2627 | ||
2628 | if (memcmp(ceph_mdsmap_get_addr(oldmap, i), | 2628 | if (i >= newmap->m_max_mds || |
2629 | memcmp(ceph_mdsmap_get_addr(oldmap, i), | ||
2629 | ceph_mdsmap_get_addr(newmap, i), | 2630 | ceph_mdsmap_get_addr(newmap, i), |
2630 | sizeof(struct ceph_entity_addr))) { | 2631 | sizeof(struct ceph_entity_addr))) { |
2631 | if (s->s_state == CEPH_MDS_SESSION_OPENING) { | 2632 | if (s->s_state == CEPH_MDS_SESSION_OPENING) { |