Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327463
b: refs/heads/master
c: d9fc1d5
h: refs/heads/master
i:
  327461: 353367c
  327459: 1cc0a7f
  327455: dd6f2da
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Aug 6, 2012
1 parent b3d0ca5 commit 6bbfe97
Show file tree
Hide file tree
Showing 2 changed files with 8 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: ab846ec4eaea1156148841b194df808ad745bbe2
refs/heads/master: d9fc1d54f6f8123909cdee4fa98ab1ebf6c8651c
10 changes: 7 additions & 3 deletions trunk/net/bluetooth/a2mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,17 @@ static inline int a2mp_cmd_rsp(struct amp_mgr *mgr, struct sk_buff *skb,
/* Handle A2MP signalling */
static int a2mp_chan_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
{
struct a2mp_cmd *hdr = (void *) skb->data;
struct a2mp_cmd *hdr;
struct amp_mgr *mgr = chan->data;
int err = 0;

amp_mgr_get(mgr);

while (skb->len >= sizeof(*hdr)) {
struct a2mp_cmd *hdr = (void *) skb->data;
u16 len = le16_to_cpu(hdr->len);
u16 len;

hdr = (void *) skb->data;
len = le16_to_cpu(hdr->len);

BT_DBG("code 0x%2.2x id %d len %u", hdr->code, hdr->ident, len);

Expand Down Expand Up @@ -393,7 +395,9 @@ static int a2mp_chan_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)

if (err) {
struct a2mp_cmd_rej rej;

rej.reason = __constant_cpu_to_le16(0);
hdr = (void *) skb->data;

BT_DBG("Send A2MP Rej: cmd 0x%2.2x err %d", hdr->code, err);

Expand Down

0 comments on commit 6bbfe97

Please sign in to comment.