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)
commit807c86e2ceba8febe79b289d50cd0d5e0b0af917
treeff7ef8edfd4aab41ea32e735afc9c7fd4eb8f35a
parent63733a0fc55cca74b1911769633dc5dfd1a45907
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