Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311397
b: refs/heads/master
c: 8f321f8
h: refs/heads/master
i:
  311395: a11a93c
v: v3
  • Loading branch information
Szymon Janc authored and Gustavo Padovan committed Jun 12, 2012
1 parent 9dc4356 commit 2a6844e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: 6eda541d12116b4772baa09d3e8d7b0389df4289
refs/heads/master: 8f321f853ea33330c7141977cd34804476e2e07e
14 changes: 8 additions & 6 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2915,12 +2915,14 @@ static void l2cap_conf_rfc_get(struct l2cap_chan *chan, void *rsp, int len)
while (len >= L2CAP_CONF_OPT_SIZE) {
len -= l2cap_get_conf_opt(&rsp, &type, &olen, &val);

switch (type) {
case L2CAP_CONF_RFC:
if (olen == sizeof(rfc))
memcpy(&rfc, (void *)val, olen);
goto done;
}
if (type != L2CAP_CONF_RFC)
continue;

if (olen != sizeof(rfc))
break;

memcpy(&rfc, (void *)val, olen);
goto done;
}

/* Use sane default values in case a misbehaving remote device
Expand Down

0 comments on commit 2a6844e

Please sign in to comment.