From: Gustavo Padovan Date: Fri, 11 May 2012 16:16:12 +0000 (-0300) Subject: Bluetooth: Fix skb length calculation X-Git-Tag: v3.5-rc1~35^2~3^2~18^2^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d0ed3d5879edae4bf1c98eb3163466c30d41789;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git Bluetooth: Fix skb length calculation When we add a fragment to a skb, len and data_len fields need to be updated. Signed-off-by: Gustavo Padovan Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 339f834..b3907a3 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -1855,6 +1855,9 @@ static inline int l2cap_skbuff_fromiovec(struct l2cap_chan *chan, sent += count; len -= count; + skb->len += (*frag)->len; + skb->data_len += (*frag)->len; + frag = &(*frag)->next; }