Skip to content

Commit

Permalink
ksmbd: fix wrong return value in __query_dir()
Browse files Browse the repository at this point in the history
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
namjaejeon committed Feb 17, 2023
1 parent 6c76488 commit 54879eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3872,7 +3872,7 @@ static int __query_dir(struct dir_context *ctx, const char *name, int namlen,
if (d_info->flags & SMB2_RETURN_SINGLE_ENTRY) {
d_info->out_buf_len = 0;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
return false;
return true;
#else
return 0;
#endif
Expand Down

0 comments on commit 54879eb

Please sign in to comment.