diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-12-02 16:35:08 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-12-12 23:09:20 +0100 |
commit | 6db2304aabb070261ad34923bfd83c43dfb000e3 (patch) | |
tree | 676ae16b17bcbceccaa51e4b094c9f568988fb4a /net/ceph/crypto.c | |
parent | 2b1e1a7cd0a615d57455567a549f9965023321b5 (diff) | |
download | linux-6db2304aabb070261ad34923bfd83c43dfb000e3.tar.bz2 |
libceph: uninline ceph_crypto_key_destroy()
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'net/ceph/crypto.c')
-rw-r--r-- | net/ceph/crypto.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ceph/crypto.c b/net/ceph/crypto.c index 38936e1fd644..c4d8f68e0b18 100644 --- a/net/ceph/crypto.c +++ b/net/ceph/crypto.c @@ -80,6 +80,14 @@ int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *inkey) return 0; } +void ceph_crypto_key_destroy(struct ceph_crypto_key *key) +{ + if (key) { + kfree(key->key); + key->key = NULL; + } +} + static struct crypto_skcipher *ceph_crypto_alloc_cipher(void) { return crypto_alloc_skcipher("cbc(aes)", 0, CRYPTO_ALG_ASYNC); |