aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/irda/irttp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/irda/irttp.c b/net/irda/irttp.c
index 6cfaeaf2a370..f6054f9ccbe3 100644
--- a/net/irda/irttp.c
+++ b/net/irda/irttp.c
@@ -550,7 +550,7 @@ EXPORT_SYMBOL(irttp_close_tsap);
550 */ 550 */
551int irttp_udata_request(struct tsap_cb *self, struct sk_buff *skb) 551int irttp_udata_request(struct tsap_cb *self, struct sk_buff *skb)
552{ 552{
553 int ret = -1; 553 int ret;
554 554
555 IRDA_ASSERT(self != NULL, return -1;); 555 IRDA_ASSERT(self != NULL, return -1;);
556 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return -1;); 556 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return -1;);
@@ -566,13 +566,14 @@ int irttp_udata_request(struct tsap_cb *self, struct sk_buff *skb)
566 566
567 /* Check that nothing bad happens */ 567 /* Check that nothing bad happens */
568 if (!self->connected) { 568 if (!self->connected) {
569 IRDA_DEBUG(1, "%s(), Not connected\n", __func__); 569 IRDA_WARNING("%s(), Not connected\n", __func__);
570 ret = -ENOTCONN;
570 goto err; 571 goto err;
571 } 572 }
572 573
573 if (skb->len > self->max_seg_size) { 574 if (skb->len > self->max_seg_size) {
574 IRDA_DEBUG(1, "%s(), UData is too large for IrLAP!\n", 575 IRDA_ERROR("%s(), UData is too large for IrLAP!\n", __func__);
575 __func__); 576 ret = -EMSGSIZE;
576 goto err; 577 goto err;
577 } 578 }
578 579