summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-17 16:28:07 +0000
committerIlya Dryomov <idryomov@gmail.com>2026-10-26 14:15:47 +0100
commit6c80207392fdb86107d7acbdbf4c86cac38da1af (patch)
tree3bb5d134936730e9a82e107a149b5c1cfff85131 /include/linux/timerqueue.h
parente51cf76e7275d1bb5ad2d529bb00feade632dadc (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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions