diff options
author | Jeet Chaudhuri <jeetlinux@yahoo.co.in> | 2006-12-06 20:08:45 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-12-06 20:08:45 -0800 |
commit | e694ba4428d53882489c07fd7d60c39b3e164dd5 (patch) | |
tree | a11e218cc6160f3eede73815bdba44a81cc0c364 /net | |
parent | b259e7d250e15d45b3c8362917931aaff1c88d73 (diff) | |
download | linux-3.10-e694ba4428d53882489c07fd7d60c39b3e164dd5.tar.gz linux-3.10-e694ba4428d53882489c07fd7d60c39b3e164dd5.tar.bz2 linux-3.10-e694ba4428d53882489c07fd7d60c39b3e164dd5.zip |
[IrDA]: Incorrect TTP header reservation
We must reserve SAR + MAX_HEADER bytes for IrLMP to fit in.
Patch from Jeet Chaudhuri <jeetlinux@yahoo.co.in>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/irda/irttp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/irda/irttp.c b/net/irda/irttp.c index 252f1101256..03504f3e499 100644 --- a/net/irda/irttp.c +++ b/net/irda/irttp.c @@ -1100,7 +1100,7 @@ int irttp_connect_request(struct tsap_cb *self, __u8 dtsap_sel, return -ENOMEM; /* Reserve space for MUX_CONTROL and LAP header */ - skb_reserve(tx_skb, TTP_MAX_HEADER); + skb_reserve(tx_skb, TTP_MAX_HEADER + TTP_SAR_HEADER); } else { tx_skb = userdata; /* @@ -1349,7 +1349,7 @@ int irttp_connect_response(struct tsap_cb *self, __u32 max_sdu_size, return -ENOMEM; /* Reserve space for MUX_CONTROL and LAP header */ - skb_reserve(tx_skb, TTP_MAX_HEADER); + skb_reserve(tx_skb, TTP_MAX_HEADER + TTP_SAR_HEADER); } else { tx_skb = userdata; /* |