Commit 2d0ed3d5 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Gustavo Padovan

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: default avatarGustavo Padovan <gustavo@padovan.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 087bfd99
...@@ -1855,6 +1855,9 @@ static inline int l2cap_skbuff_fromiovec(struct l2cap_chan *chan, ...@@ -1855,6 +1855,9 @@ static inline int l2cap_skbuff_fromiovec(struct l2cap_chan *chan,
sent += count; sent += count;
len -= count; len -= count;
skb->len += (*frag)->len;
skb->data_len += (*frag)->len;
frag = &(*frag)->next; frag = &(*frag)->next;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment