From: Ilya Dryomov Date: Thu, 13 Mar 2014 14:36:15 +0000 (+0200) Subject: libceph: fix crush_decode() call site in osdmap_decode() X-Git-Tag: v3.15-rc1~61^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9902e682c7f3df9ed5f60bc6f9c7efa6fd6b2d1d;p=pandora-kernel.git libceph: fix crush_decode() call site in osdmap_decode() The size of the memory area feeded to crush_decode() should be limited not only by osdmap end, but also by the crush map length. Also, drop unnecessary dout() (dout() in crush_decode() conveys the same info) and step past crush map only if it is decoded successfully. Signed-off-by: Ilya Dryomov Reviewed-by: Alex Elder --- Reading git-diff-tree failed