Message ID | 200811221108.54242.bpidoux@free.fr |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
From: Bernard Pidoux <bpidoux@free.fr> Date: Sat, 22 Nov 2008 11:08:52 +0100 > + } > + > if (copied > size) { > copied = size; > msg->msg_flags |= MSG_TRUNC; > -- This patch, as well as your changelog message, have space and tab characters severely corrupted by your email client. Please fix this and resubmit. In fact, this corruption is so severe I want you to email this patch to yourself and try to apply it. Do not resubmit this until you can email the patch to yourself and apply it cleanly. Thank you. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index 8a54cff..92af3a6 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c @@ -1075,6 +1075,10 @@ static int rose_sendmsg(struct kiocb *iocb, struct socket *sock, unsigned char *asmptr; int n, size, qbit = 0; + /* ROSE empty frame has no meaning : don't send */ + if (len == 0) + return 0; + if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_CMSG_COMPAT)) return -EINVAL;