smb: client: make use of smbdirect_socket_init()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Aug 2025 13:10:52 +0000 (15:10 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:48 +0000 (18:29 -0500)
commit7360778b6f962bd87472238204b5cf76d98e8122
tree71b854f03208b51f00d4f4b168208a68cd71bcf4
parent5a0d5ae65c121decfac03c68a20343e75f636957
smb: client: make use of smbdirect_socket_init()

It's much safer to initialize the whole structure at
the beginning than doing it all over the place
and then miss to move it if code changes.

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smbdirect.c