projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed98ada
)
ceph: fix leak of mon authorizer
author
Sage Weil
<sage@newdream.net>
Mon, 5 Jul 2010 22:36:49 +0000
(15:36 -0700)
committer
Sage Weil
<sage@newdream.net>
Mon, 5 Jul 2010 22:36:49 +0000
(15:36 -0700)
Fix leak of a struct ceph_buffer on umount.
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/auth_x.c
patch
|
blob
|
history
diff --git
a/fs/ceph/auth_x.c
b/fs/ceph/auth_x.c
index 3fe49042d8adaffe6b0f18de5d1b1fd63def729f..6d44053ecff1f08af7bee8546a0435ac55a0e1e2 100644
(file)
--- a/
fs/ceph/auth_x.c
+++ b/
fs/ceph/auth_x.c
@@
-613,6
+613,9
@@
static void ceph_x_destroy(struct ceph_auth_client *ac)
remove_ticket_handler(ac, th);
}
+ if (xi->auth_authorizer.buf)
+ ceph_buffer_put(xi->auth_authorizer.buf);
+
kfree(ac->private);
ac->private = NULL;
}