]> 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)
commitf1ee30533406c0829bb5b8037dbfe2360e908376
treeb323046a1fe6d6a4e3630bcb5b08d3cd74776daf
parent138930ecc2a094d5433d72c7421354fd5d18f857
libceph: eliminate unnecessary allocation in process_one_ticket()

Commit 371b2876a5de ("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