]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix authenticator buffer size calculation
authorSage Weil <sage@newdream.net>
Mon, 15 Mar 2010 22:52:17 +0000 (15:52 -0700)
committerSage Weil <sage@newdream.net>
Sun, 21 Mar 2010 04:33:10 +0000 (21:33 -0700)
commit8c0532be15ac4fc23a18ea05063598734f04850a
treeff7ef8edfd4aab41ea32e735afc9c7fd4eb8f35a
parent5b40c8f0baef1ad02d32efd8a4298c2e619599ca
ceph: fix authenticator buffer size calculation

The buffer size was incorrectly calculated for the ceph_x_encrypt()
encapsulated ticket blob.  Use a helper (with correct arithmetic) and
BUG out if we were wrong.

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