Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306883
b: refs/heads/master
c: 0c01bc4
h: refs/heads/master
i:
  306881: 7e3e415
  306879: 0116536
v: v3
  • Loading branch information
Syam Sidhardhan authored and Gustavo Padovan committed May 9, 2012
1 parent 357e834 commit d65d205
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 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: 5c94f379c11a7ecfdb7c0cadbb3bb5f749e20732
refs/heads/master: 0c01bc486a6f5f397732f808ecbcd63665c605d8
16 changes: 4 additions & 12 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,10 +1247,8 @@ static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)

err = hci_send_cmd(hdev, HCI_OP_WRITE_LE_HOST_SUPPORTED, sizeof(hci_cp),
&hci_cp);
if (err < 0) {
if (err < 0)
mgmt_pending_remove(cmd);
goto unlock;
}

unlock:
hci_dev_unlock(hdev);
Expand Down Expand Up @@ -1300,10 +1298,8 @@ static int add_uuid(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
}

cmd = mgmt_pending_add(sk, MGMT_OP_ADD_UUID, hdev, data, len);
if (!cmd) {
if (!cmd)
err = -ENOMEM;
goto failed;
}

failed:
hci_dev_unlock(hdev);
Expand Down Expand Up @@ -1388,10 +1384,8 @@ static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data,
}

cmd = mgmt_pending_add(sk, MGMT_OP_REMOVE_UUID, hdev, data, len);
if (!cmd) {
if (!cmd)
err = -ENOMEM;
goto unlock;
}

unlock:
hci_dev_unlock(hdev);
Expand Down Expand Up @@ -1442,10 +1436,8 @@ static int set_dev_class(struct sock *sk, struct hci_dev *hdev, void *data,
}

cmd = mgmt_pending_add(sk, MGMT_OP_SET_DEV_CLASS, hdev, data, len);
if (!cmd) {
if (!cmd)
err = -ENOMEM;
goto unlock;
}

unlock:
hci_dev_unlock(hdev);
Expand Down

0 comments on commit d65d205

Please sign in to comment.