Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277691
b: refs/heads/master
c: b705913
h: refs/heads/master
i:
  277689: c7f5f24
  277687: 2970326
v: v3
  • Loading branch information
Gustavo F. Padovan committed Oct 14, 2011
1 parent 085b692 commit e30f597
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 56b7d137855eb02cba8aecbb67d49c24b43644b0
refs/heads/master: b7059136d765603f2cff05d5e2d4850a4e505ec8
4 changes: 2 additions & 2 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,15 +917,15 @@ static int load_keys(struct sock *sk, u16 index, unsigned char *data, u16 len)
cp = (void *) data;

if (len < sizeof(*cp))
return -EINVAL;
return cmd_status(sk, index, MGMT_OP_LOAD_KEYS, EINVAL);

key_count = get_unaligned_le16(&cp->key_count);

expected_len = sizeof(*cp) + key_count * sizeof(struct mgmt_key_info);
if (expected_len != len) {
BT_ERR("load_keys: expected %u bytes, got %u bytes",
len, expected_len);
return -EINVAL;
return cmd_status(sk, index, MGMT_OP_LOAD_KEYS, EINVAL);
}

hdev = hci_dev_get(index);
Expand Down

0 comments on commit e30f597

Please sign in to comment.