Skip to content

Commit 2186a11

Browse files
ChenXiaoSongSteve French
authored andcommitted
smb/server: fix return value of smb2_open()
In most error cases, error code is not returned in smb2_open(), __process_request() will not print error message. Fix this by returning the correct value at the end of smb2_open(). Signed-off-by: ChenXiaoSong <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent ce61b60 commit 2186a11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/server/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3713,7 +3713,7 @@ int smb2_open(struct ksmbd_work *work)
37133713
kfree(name);
37143714
kfree(lc);
37153715

3716-
return 0;
3716+
return rc;
37173717
}
37183718

37193719
static int readdir_info_level_struct_sz(int info_level)

0 commit comments

Comments
 (0)