1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00

Fix locking issue in ng_btsocket_l2cap_ctloutput()

Submitted by:	Heiko Wundram (Beenic) < wundram at beenic dot net >
MFC after:	3 days
This commit is contained in:
Maksim Yevmenkin 2007-10-31 16:17:20 +00:00
parent cbf964029b
commit b64b9bb278
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173231

View File

@ -2228,8 +2228,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 */