Commit 2186a116 authored by ChenXiaoSong's avatar ChenXiaoSong Committed by Steve French
Browse files

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: default avatarChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent ce61b605
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3713,7 +3713,7 @@ int smb2_open(struct ksmbd_work *work)
	kfree(name);
	kfree(lc);

	return 0;
	return rc;
}

static int readdir_info_level_struct_sz(int info_level)