From: Alex Elder Date: Fri, 24 Aug 2012 04:22:06 +0000 (-0500) Subject: rbd: don't over-allocate space for object prefix X-Git-Tag: v3.7-rc1~90^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58c17b0e1b2278824aedc5d1201f6a43a38d6a48;p=pandora-kernel.git rbd: don't over-allocate space for object prefix In rbd_header_from_disk() the object prefix buffer is sized based on the maximum size it's block_name equivalent on disk could be. Instead, only allocate enough to hold null-terminated string from the on-disk header--or the maximum size of no NUL is found. Signed-off-by: Alex Elder Reviewed-by: Yehuda Sadeh --- Reading git-diff-tree failed