Commit c5cf420
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: 596afb0 ("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>1 parent 2342630 commit c5cf420
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5728 | 5728 | | |
5729 | 5729 | | |
5730 | 5730 | | |
| 5731 | + | |
5731 | 5732 | | |
5732 | 5733 | | |
5733 | 5734 | | |
| |||
5743 | 5744 | | |
5744 | 5745 | | |
5745 | 5746 | | |
| 5747 | + | |
| 5748 | + | |
5746 | 5749 | | |
5747 | 5750 | | |
5748 | 5751 | | |
| |||
0 commit comments