Commit 2342630
ceph: pass cred pointer to ceph_mds_auth_match()
This eliminates a redundant get_current_cred() call, because
ceph_mds_check_access() has already obtained this pointer.
As a side effect, this also fixes a reference leak in
ceph_mds_auth_match(): by omitting the get_current_cred() call, no
additional cred reference is taken.
Cc: [email protected]
Fixes: 596afb0 ("ceph: add ceph_mds_check_access() helper")
Signed-off-by: Max Kellermann <[email protected]>
Reviewed-by: Xiubo Li <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>1 parent 8ea412e commit 2342630
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5601 | 5601 | | |
5602 | 5602 | | |
5603 | 5603 | | |
| 5604 | + | |
5604 | 5605 | | |
5605 | 5606 | | |
5606 | | - | |
5607 | 5607 | | |
5608 | 5608 | | |
5609 | 5609 | | |
| |||
5726 | 5726 | | |
5727 | 5727 | | |
5728 | 5728 | | |
5729 | | - | |
| 5729 | + | |
5730 | 5730 | | |
5731 | 5731 | | |
5732 | 5732 | | |
| |||
0 commit comments