| commit | 73bba6fc44591587254fec8e867a99b5a2a28ba7 | [log] [tgz] | 
|---|---|---|
| author | Yan, Zheng <zheng.z.yan@intel.com> | Thu Sep 20 17:42:25 2012 +0800 | 
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 26 11:38:44 2012 -0800 | 
| tree | 6bd5dd48eb63fc4ecffc5c1fe006ed2ef58fc2a9 | |
| parent | 631015e45ee3bdcde1fe75e7d04fdfece6e42016 [diff] | 
ceph: Fix oops when handling mdsmap that decreases max_mds (cherry picked from commit 3e8f43a089f06279c5f76a9ccd42578eebf7bfa5) When i >= newmap->m_max_mds, ceph_mdsmap_get_addr(newmap, i) return NULL. Passing NULL to memcmp() triggers oops. Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Signed-off-by: Sage Weil <sage@inktank.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>