diff options
| author | 2026-09-17 16:28:07 +0000 | |
|---|---|---|
| committer | 2026-10-26 14:15:47 +0100 | |
| commit | 6c80207392fdb86107d7acbdbf4c86cac38da1af (patch) | |
| tree | 3bb5d134936730e9a82e107a149b5c1cfff85131 /scripts/Makefile.thinlto | |
| parent | ceph: Fix xattr buffer leak in __send_cap() (diff) | |
ceph: Fix mds session leak in __open_export_target_session()
__open_export_target_session() holds a reference on the target session,
either from __ceph_lookup_mds_session() or from register_session(),
which the caller is expected to drop. When __open_session() fails, the
helper returns ERR_PTR(ret) without dropping that reference, leaking
one session reference on every open failure.
Drop the session reference before returning the error.
Cc: stable@vger.kernel.org
Fixes: b682c6d41bc2 ("ceph: switch to WARN_ON_ONCE in encode_supported_features()")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Alex Markuze <amarkuze@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
