Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211422
b: refs/heads/master
c: eaa71b3
h: refs/heads/master
v: v3
  • Loading branch information
Gustavo F. Padovan committed Oct 4, 2010
1 parent ab52067 commit 6d143ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e454c844644683571617896ab2a4ce0109c1943e
refs/heads/master: eaa71b318c5ed0cd1ac3182a533471dc5edf372d
5 changes: 5 additions & 0 deletions trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1950,6 +1950,11 @@ static int l2cap_sock_setsockopt_old(struct socket *sock, int optname, char __us

switch (optname) {
case L2CAP_OPTIONS:
if (sk->sk_state == BT_CONNECTED) {
err = -EINVAL;
break;
}

opts.imtu = l2cap_pi(sk)->imtu;
opts.omtu = l2cap_pi(sk)->omtu;
opts.flush_to = l2cap_pi(sk)->flush_to;
Expand Down

0 comments on commit 6d143ac

Please sign in to comment.