]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commite9226d7c9f1d83278d78675d51acc07e1a78cb27
treeb323046a1fe6d6a4e3630bcb5b08d3cd74776daf
parenta8d4205623ae965e36c68629db306ca0695a2771
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 <idryomov@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
net/ceph/auth_x.c