diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2025-12-14 15:05:56 +0900 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-12-14 18:35:56 -0600 |
| commit | cafb57f7bdd57abba87725eb4e82bbdca4959644 (patch) | |
| tree | fa0ac3cd53080744341201ae19bdc8e3b02553ec /tools/testing/selftests/bpf/progs/pyperf600.c | |
| parent | 8dd2e58b62731a96e276ee0545fb910ffb2057d9 (diff) | |
ksmbd: Fix refcount leak when invalid session is found on session lookup
When a session is found but its state is not SMB2_SESSION_VALID, It
indicates that no valid session was found, but it is missing to decrement
the reference count acquired by the session lookup, which results in
a reference count leak. This patch fixes the issue by explicitly calling
ksmbd_user_session_put to release the reference to the session.
Cc: stable@vger.kernel.org
Reported-by: Alexandre <roger.andersen@protonmail.com>
Reported-by: Stanislas Polu <spolu@dust.tt>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/pyperf600.c')
0 files changed, 0 insertions, 0 deletions
