Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277655
b: refs/heads/master
c: cd11cdd
h: refs/heads/master
i:
  277653: dcaf503
  277651: f8649d3
  277647: 01edd4c
v: v3
  • Loading branch information
Gustavo F. Padovan committed Oct 7, 2011
1 parent 7ce1160 commit 7a5ed88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: 794d175698f0e78be7f2e3f4bdbe0e7cd3f2d6ae
refs/heads/master: cd11cdd28468d6222ce6489b2212fa7b0efaefdf
11 changes: 3 additions & 8 deletions trunk/net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,10 @@ static unsigned char hidp_mkeyspat[] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 };
static struct hidp_session *__hidp_get_session(bdaddr_t *bdaddr)
{
struct hidp_session *session;
struct list_head *p;

BT_DBG("");

list_for_each(p, &hidp_session_list) {
session = list_entry(p, struct hidp_session, list);
list_for_each_entry(session, &hidp_session_list, list) {
if (!bacmp(bdaddr, &session->bdaddr))
return session;
}
Expand Down Expand Up @@ -1140,19 +1138,16 @@ int hidp_del_connection(struct hidp_conndel_req *req)

int hidp_get_connlist(struct hidp_connlist_req *req)
{
struct list_head *p;
struct hidp_session *session;
int err = 0, n = 0;

BT_DBG("");

down_read(&hidp_session_sem);

list_for_each(p, &hidp_session_list) {
struct hidp_session *session;
list_for_each_entry(session, &hidp_session_list, list) {
struct hidp_conninfo ci;

session = list_entry(p, struct hidp_session, list);

__hidp_copy_session(session, &ci);

if (copy_to_user(req->ci, &ci, sizeof(ci))) {
Expand Down

0 comments on commit 7a5ed88

Please sign in to comment.