Commit 2ac538e4 authored by He Wang's avatar He Wang Committed by Steve French
Browse files

ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked



When `ksmbd_vfs_kern_path_locked` met an error and it is not the last
entry, it will exit without restoring changed path buffer. But later this
buffer may be used as the filename for creation.

Fixes: c5a709f0 ("ksmbd: handle caseless file creation")
Signed-off-by: default avatarHe Wang <xw897002528@gmail.com>
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent c7f3cd1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment