From: Ilya Dryomov Date: Wed, 22 Oct 2014 14:15:37 +0000 (+0400) Subject: libceph: eliminate unnecessary allocation in process_one_ticket() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~164^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9226d7c9f1d83278d78675d51acc07e1a78cb27;p=pandora-kernel.git libceph: eliminate unnecessary allocation in process_one_ticket() Commit c27a3e4d667f ("libceph: do not hard code max auth ticket len") while fixing a buffer overlow tried to keep the same as much of the surrounding code as possible and introduced an unnecessary kmalloc() in the unencrypted ticket path. It is likely to fail on huge tickets, so get rid of it. Signed-off-by: Ilya Dryomov Reviewed-by: Sage Weil --- Reading git-diff-tree failed