Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321210
b: refs/heads/master
c: f0666b1
h: refs/heads/master
v: v3
  • Loading branch information
Sylvain Munaut authored and Sage Weil committed Aug 2, 2012
1 parent 5c592cf commit e24172d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ef50c3bec20060bc114f62d6503c5d86d70bdd7
refs/heads/master: f0666b1ac875ff32fe290219b150ec62eebbe10e
1 change: 1 addition & 0 deletions trunk/net/ceph/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ void ceph_key_destroy(struct key *key) {
struct ceph_crypto_key *ckey = key->payload.data;

ceph_crypto_key_destroy(ckey);
kfree(ckey);
}

struct key_type key_type_ceph = {
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/ceph/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ struct ceph_crypto_key {

static inline void ceph_crypto_key_destroy(struct ceph_crypto_key *key)
{
kfree(key->key);
if (key)
kfree(key->key);
}

extern int ceph_crypto_key_clone(struct ceph_crypto_key *dst,
Expand Down

0 comments on commit e24172d

Please sign in to comment.