Skip to content

Commit

Permalink
ksmbd: fix creation failure after caseless lookup
Browse files Browse the repository at this point in the history
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
namjaejeon committed Jan 2, 2025
1 parent d0a6fce commit b3ff4e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2852,14 +2852,15 @@ int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name,
filepath,
flags,
path);
if (!is_last)
next[0] = '/';
if (err)
goto out2;
else if (is_last)
goto out1;
path_put(parent_path);
*parent_path = *path;

next[0] = '/';
remain_len -= filename_len + 1;
}

Expand Down

0 comments on commit b3ff4e3

Please sign in to comment.