Fix locking issue in ng_btsocket_l2cap_ctloutput()
Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net > Approved by: re (kensmith)
This commit is contained in:
parent
5c97f50fb2
commit
0b258d1f6a
@ -2273,8 +2273,10 @@ ng_btsocket_l2cap_ctloutput(struct socket *so, struct sockopt *sopt)
|
||||
* channel?
|
||||
*/
|
||||
|
||||
if (pcb->state != NG_BTSOCKET_L2CAP_CLOSED)
|
||||
return (EACCES);
|
||||
if (pcb->state != NG_BTSOCKET_L2CAP_CLOSED) {
|
||||
error = EACCES;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (sopt->sopt_name) {
|
||||
case SO_L2CAP_IMTU: /* set incoming MTU */
|
||||
|
Loading…
x
Reference in New Issue
Block a user