|
@@ -1302,7 +1302,7 @@ static int irda_sendmsg(struct kiocb *iocb, struct socket *sock,
|
|
if (sk->sk_state != TCP_ESTABLISHED)
|
|
if (sk->sk_state != TCP_ESTABLISHED)
|
|
return -ENOTCONN;
|
|
return -ENOTCONN;
|
|
|
|
|
|
- /* Check that we don't send out to big frames */
|
|
|
|
|
|
+ /* Check that we don't send out too big frames */
|
|
if (len > self->max_data_size) {
|
|
if (len > self->max_data_size) {
|
|
IRDA_DEBUG(2, "%s(), Chopping frame from %zd to %d bytes!\n",
|
|
IRDA_DEBUG(2, "%s(), Chopping frame from %zd to %d bytes!\n",
|
|
__FUNCTION__, len, self->max_data_size);
|
|
__FUNCTION__, len, self->max_data_size);
|
|
@@ -1546,7 +1546,7 @@ static int irda_sendmsg_dgram(struct kiocb *iocb, struct socket *sock,
|
|
IRDA_ASSERT(self != NULL, return -1;);
|
|
IRDA_ASSERT(self != NULL, return -1;);
|
|
|
|
|
|
/*
|
|
/*
|
|
- * Check that we don't send out to big frames. This is an unreliable
|
|
|
|
|
|
+ * Check that we don't send out too big frames. This is an unreliable
|
|
* service, so we have no fragmentation and no coalescence
|
|
* service, so we have no fragmentation and no coalescence
|
|
*/
|
|
*/
|
|
if (len > self->max_data_size) {
|
|
if (len > self->max_data_size) {
|
|
@@ -1642,7 +1642,7 @@ static int irda_sendmsg_ultra(struct kiocb *iocb, struct socket *sock,
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
- * Check that we don't send out to big frames. This is an unreliable
|
|
|
|
|
|
+ * Check that we don't send out too big frames. This is an unreliable
|
|
* service, so we have no fragmentation and no coalescence
|
|
* service, so we have no fragmentation and no coalescence
|
|
*/
|
|
*/
|
|
if (len > self->max_data_size) {
|
|
if (len > self->max_data_size) {
|