Incorrect TTP header reservation
Subsystems (2)
PATCH 2/2 Incorrect TTP header reservation
We must reserve SAR + MAX_HEADER bytes for IrLMP to fit in.
Patch from Jeet Chaudhuri <[email protected]>
Signed-off-by Samuel Ortiz <[email protected]>
--- net/irda/irttp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/irda/irttp.c +2 -2
@@ -1100,7 +1100,7 @@ int irttp_connect_request(struct tsap_cbreturn -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_creturn -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;/*
Signature · 1 line
1.4.2.3
David Miller
maintainerFrom: Samuel Ortiz <[email protected]>
Date: Thu, 7 Dec 2006 02:51:17 +0200
Quoted 4 lines
We must reserve SAR +
MAX_HEADERbytes for IrLMP to fit in.Patch from Jeet Chaudhuri <[email protected]>
Signed-off-by Samuel Ortiz <[email protected]>
Also applied.
Are you sending this patch to -stable? Please do.