Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352236
b: refs/heads/master
c: 715a5bf
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hedberg authored and Gustavo Padovan committed Jan 10, 2013
1 parent 264864d commit fd6357c
Show file tree
Hide file tree
Showing 2 changed files with 6 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: e384662b1c1004e6b1e9d2c4979945a383c07b7d
refs/heads/master: 715a5bf2db4df4a7df64f420d21fb49ba146b3fa
7 changes: 5 additions & 2 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2648,7 +2648,7 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
{
struct mgmt_cp_load_long_term_keys *cp = cp_data;
u16 key_count, expected_len;
int i;
int i, err;

key_count = __le16_to_cpu(cp->key_count);

Expand Down Expand Up @@ -2682,9 +2682,12 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
key->enc_size, key->ediv, key->rand);
}

err = cmd_complete(sk, hdev->id, MGMT_OP_LOAD_LONG_TERM_KEYS, 0,
NULL, 0);

hci_dev_unlock(hdev);

return 0;
return err;
}

static const struct mgmt_handler {
Expand Down

0 comments on commit fd6357c

Please sign in to comment.