From: Yan, Zheng Date: Thu, 20 Sep 2012 09:42:25 +0000 (+0800) Subject: ceph: Fix oops when handling mdsmap that decreases max_mds X-Git-Tag: v3.7-rc1~90^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e8f43a089f06279c5f76a9ccd42578eebf7bfa5;p=pandora-kernel.git ceph: Fix oops when handling mdsmap that decreases max_mds 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 Signed-off-by: Sage Weil --- Reading git-diff-tree failed