Am 06.08.25 um 22:36 schrieb David Howells:
+int smb_sendmsg(struct TCP_Server_Info *server, struct msghdr *smb_msg, + size_t *sent) +{ + int rc = 0; + int retries = 0; + struct socket *ssocket = server->ssocket; + + *sent = 0; + + if (server->noblocksnd) + smb_msg->msg_flags = MSG_DONTWAIT + MSG_NOSIGNAL; + else + smb_msg->msg_flags = MSG_NOSIGNAL; + smb_msg->msg_flags = MSG_SPLICE_PAGES; +
I guess you want '|=' instead of '=' in all 3 lines? I also think msghdr should be setup in the caller completely or it should be a local variable in smb_sendmsg() and the caller only passes struct iov_iter. metze