Max Kellermann e3d1c9e2b8 ceph: fix cred leak in ceph_mds_check_access()
commit c5cf420303256dcd6ff175643e9e9558543c2047 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-09 10:41:05 +01:00
..
2023-11-03 23:28:34 +01:00
2024-09-24 22:51:33 +02:00
2023-11-10 09:52:56 -08:00
2023-08-22 09:01:48 +02:00
2023-11-10 09:52:56 -08:00
2022-03-01 18:26:37 +01:00
2023-11-10 09:52:56 -08:00