From: Stefan Metzmacher Date: Wed, 14 Sep 2022 03:25:46 +0000 (+0200) Subject: cifs: don't send down the destination address to sendmsg for a SOCK_STREAM X-Git-Tag: v6.1-rc5~438^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17d3df38dc5f4cec9b0ac6eb79c1859b6e2693a4;p=platform%2Fkernel%2Flinux-starfive.git cifs: don't send down the destination address to sendmsg for a SOCK_STREAM This is ignored anyway by the tcp layer. Signed-off-by: Stefan Metzmacher Cc: stable@vger.kernel.org Reviewed-by: Ronnie Sahlberg Reviewed-by: Paulo Alcantara (SUSE) Signed-off-by: Steve French --- diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index c2fe035..a43c87c 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -194,8 +194,8 @@ smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg, *sent = 0; - smb_msg->msg_name = (struct sockaddr *) &server->dstaddr; - smb_msg->msg_namelen = sizeof(struct sockaddr); + smb_msg->msg_name = NULL; + smb_msg->msg_namelen = 0; smb_msg->msg_control = NULL; smb_msg->msg_controllen = 0; if (server->noblocksnd)