diff options
author | 2014-03-13 16:36:15 +0200 | |
---|---|---|
committer | 2014-04-04 21:07:43 -0700 | |
commit | 9902e682c7f3df9ed5f60bc6f9c7efa6fd6b2d1d (patch) | |
tree | 2f8d6bbb7bd710aca4689662a8877666e1ac5eae /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | libceph: check length of osdmap osd arrays (diff) | |
download | linux-dev-9902e682c7f3df9ed5f60bc6f9c7efa6fd6b2d1d.tar.xz linux-dev-9902e682c7f3df9ed5f60bc6f9c7efa6fd6b2d1d.zip |
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 <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions