Hello all,
[although I liked to discuss this at rds-devel@, I post to general@ as
rds-devel@ is still broken for me for several days now.]
I just noticed MSG_NOSIGNAL is not part of the allowed set of msg flags
to rds_sendmsg(). Attached is a hopefully harmless and tiny fix for this.
Martin
diff --git a/net/rds/send.c b/net/rds/send.c
index 1b37364..d688587 100644
--- a/net/rds/send.c
+++ b/net/rds/send.c
@@ -817,7 +817,7 @@ int rds_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,
/* Mirror Linux UDP mirror of BSD error message compatibility */
/* XXX: Perhaps MSG_MORE someday */
- if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_CMSG_COMPAT)) {
+ if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_CMSG_COMPAT | MSG_NOSIGNAL)) {
printk(KERN_INFO "msg_flags 0x%08X\n", msg->msg_flags);
ret = -EOPNOTSUPP;
goto out;
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general