Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306924
b: refs/heads/master
c: f2ba7fa
h: refs/heads/master
v: v3
  • Loading branch information
Gustavo Padovan committed May 9, 2012
1 parent f2f1745 commit da0cbc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d42820f378e6372f154a3f0c8def5d4bba29191
refs/heads/master: f2ba7fae044b578b068b40723dc3303b590abb78
6 changes: 3 additions & 3 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1892,14 +1892,14 @@ static struct sk_buff *l2cap_create_basic_pdu(struct l2cap_chan *chan,
{
struct l2cap_conn *conn = chan->conn;
struct sk_buff *skb;
int err, count, hlen = L2CAP_HDR_SIZE;
int err, count;
struct l2cap_hdr *lh;

BT_DBG("chan %p len %d", chan, (int)len);

count = min_t(unsigned int, (conn->mtu - hlen), len);
count = min_t(unsigned int, (conn->mtu - L2CAP_HDR_SIZE), len);

skb = chan->ops->alloc_skb(chan, count + hlen,
skb = chan->ops->alloc_skb(chan, count + L2CAP_HDR_SIZE,
msg->msg_flags & MSG_DONTWAIT);
if (IS_ERR(skb))
return skb;
Expand Down

0 comments on commit da0cbc5

Please sign in to comment.