Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290849
b: refs/heads/master
c: 010666a
h: refs/heads/master
i:
  290847: 092cb0a
v: v3
  • Loading branch information
David Herrmann authored and Johan Hedberg committed Feb 13, 2012
1 parent b7319ed commit e766e1a
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 5a0b8159e1c65ce25382d3f5189b6a462422f065
refs/heads/master: 010666a126fce7b9ecdda7209c558db21d771c56
6 changes: 4 additions & 2 deletions trunk/include/net/bluetooth/hci_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,10 @@ static inline void hci_conn_put(struct hci_conn *conn)
/* ----- HCI Devices ----- */
static inline void __hci_dev_put(struct hci_dev *d)
{
if (atomic_dec_and_test(&d->refcnt))
d->destruct(d);
if (atomic_dec_and_test(&d->refcnt)) {
if (d->destruct)
d->destruct(d);
}
}

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ int hci_register_dev(struct hci_dev *hdev)
BT_DBG("%p name %s bus %d owner %p", hdev, hdev->name,
hdev->bus, hdev->owner);

if (!hdev->open || !hdev->close || !hdev->destruct)
if (!hdev->open || !hdev->close)
return -EINVAL;

/* Do not allow HCI_AMP devices to register at index 0,
Expand Down

0 comments on commit e766e1a

Please sign in to comment.