diff options
| author | Al Viro <[email protected]> | 2025-07-06 01:26:45 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-07-08 16:25:44 +0000 |
| commit | 277627b431a0a6401635c416a21b2a0f77a77347 (patch) | |
| tree | 994ae9df8c1f09f6ab86bc84f661e3a90cae6946 /lib/crypto/mpi/mpicoder.c | |
| parent | smb: server: make use of rdma_destroy_qp() (diff) | |
| download | kernel-277627b431a0a6401635c416a21b2a0f77a77347.tar.gz kernel-277627b431a0a6401635c416a21b2a0f77a77347.zip | |
ksmbd: fix a mount write count leak in ksmbd_vfs_kern_path_locked()
If the call of ksmbd_vfs_lock_parent() fails, we drop the parent_path
references and return an error. We need to drop the write access we
just got on parent_path->mnt before we drop the mount reference - callers
assume that ksmbd_vfs_kern_path_locked() returns with mount write
access grabbed if and only if it has returned 0.
Fixes: 864fb5d37163 ("ksmbd: fix possible deadlock in smb2_open")
Signed-off-by: Al Viro <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
