summaryrefslogtreecommitdiffstats
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2012-09-20 17:42:25 +0800
committerAlex Elder <elder@inktank.com>2012-10-01 14:30:54 -0500
commit3e8f43a089f06279c5f76a9ccd42578eebf7bfa5 (patch)
tree5b208f18d8a3031b21ed379bca471dbf2fdb0e47 /fs/ceph/caps.c
parent6e14b1a6c3b8d7e48ece68733d2dac0464611ee4 (diff)
downloadblackbird-op-linux-3e8f43a089f06279c5f76a9ccd42578eebf7bfa5.tar.gz
blackbird-op-linux-3e8f43a089f06279c5f76a9ccd42578eebf7bfa5.zip
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 <zheng.z.yan@intel.com> Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph/caps.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud