mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ceph: fix leak of mon authorizer
Fix leak of a struct ceph_buffer on umount. Signed-off-by: Sage Weil <[email protected]>
This commit is contained in:
parent
ed98adad3d
commit
22b1de06c9
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue