Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109812
b: refs/heads/master
c: 7c6a329
h: refs/heads/master
v: v3
  • Loading branch information
Marcel Holtmann committed Sep 12, 2008
1 parent e15e1f3 commit 23504d9
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 1045b03e07d85f3545118510a587035536030c1c
refs/heads/master: 7c6a329e444725f24c02192ac493d8a7cd9fa638
2 changes: 1 addition & 1 deletion trunk/include/net/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ static inline int nla_len(const struct nlattr *nla)
*/
static inline int nla_ok(const struct nlattr *nla, int remaining)
{
return remaining >= (int) sizeof(*nla) &&
return remaining >= sizeof(*nla) &&
nla->nla_len >= sizeof(*nla) &&
nla->nla_len <= remaining;
}
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ static inline int hci_request(struct hci_dev *hdev, void (*req)(struct hci_dev *
{
int ret;

if (!test_bit(HCI_UP, &hdev->flags))
return -ENETDOWN;

/* Serialize all requests */
hci_req_lock(hdev);
ret = __hci_request(hdev, req, opt, timeout);
Expand Down

0 comments on commit 23504d9

Please sign in to comment.