]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: eliminate unnecessary allocation in process_one_ticket()
authorIlya Dryomov <idryomov@redhat.com>
Wed, 22 Oct 2014 14:15:37 +0000 (18:15 +0400)
committerIlya Dryomov <idryomov@redhat.com>
Fri, 31 Oct 2014 20:43:08 +0000 (23:43 +0300)
commita3db71a8504d253b75517869d9ed70e9594ab0a6
treeb323046a1fe6d6a4e3630bcb5b08d3cd74776daf
parentcff824633519e34b7a10bdfd05e47faac7405332
libceph: eliminate unnecessary allocation in process_one_ticket()

Commit 47c9b7a1759c ("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 <idryomov@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
net/ceph/auth_x.c