]> www.infradead.org Git - nvme.git/commit
ceph: fix cred leak in ceph_mds_check_access()
authorMax Kellermann <max.kellermann@ionos.com>
Sat, 23 Nov 2024 07:21:21 +0000 (08:21 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 25 Nov 2024 14:51:13 +0000 (15:51 +0100)
commitc5cf420303256dcd6ff175643e9e9558543c2047
tree991e2e7e1a709c6435a896ea58caa70a1b9301e6
parent23426309a4064b25a961e1c72961d8bfc7c8c990
ceph: fix cred leak in ceph_mds_check_access()

get_current_cred() increments the reference counter, but the
put_cred() call was missing.

Cc: stable@vger.kernel.org
Fixes: 596afb0b8933 ("ceph: add ceph_mds_check_access() helper")
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c