]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix uninitialized value when no get_authorizer method is set
authorSage Weil <sage@newdream.net>
Thu, 12 May 2011 21:18:42 +0000 (14:18 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 May 2011 18:25:02 +0000 (11:25 -0700)
commit0468ad04515b245c373ac8d98723eeecb3ebebd9
tree10184a12eb50d98245f6e218efb631ada132ca8e
parenta7aeb6d24576e8fe89be42bebc83aa2c8e5767f8
libceph: fix uninitialized value when no get_authorizer method is set

If there is no get_authorizer method we set the out_kvec to a bogus
pointer.  The length is also zero in that case, so it doesn't much matter,
but it's better not to add the empty item in the first place.

Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/messenger.c