Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 237301
b: refs/heads/master
c: b2c60d4
h: refs/heads/master
i:
  237299: 93dc8be
v: v3
  • Loading branch information
Jesper Juhl authored and Gustavo F. Padovan committed Feb 8, 2011
1 parent 748dc50 commit b36624c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 80f5585a292d087856cbc1ddc64d4f7477244b46
refs/heads/master: b2c60d42db0fea1e6c4345739601024863566a13
4 changes: 3 additions & 1 deletion trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ static int read_index_list(struct sock *sk)

body_len = sizeof(*ev) + sizeof(*rp) + (2 * count);
skb = alloc_skb(sizeof(*hdr) + body_len, GFP_ATOMIC);
if (!skb)
if (!skb) {
read_unlock(&hci_dev_list_lock);
return -ENOMEM;
}

hdr = (void *) skb_put(skb, sizeof(*hdr));
hdr->opcode = cpu_to_le16(MGMT_EV_CMD_COMPLETE);
Expand Down

0 comments on commit b36624c

Please sign in to comment.