mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
Fix locking bug, i.e. lock "wildcard" matched pcb before return.
This commit is contained in:
parent
977e23ac4d
commit
9b5b51671c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181088
@ -1832,6 +1832,9 @@ ng_btsocket_sco_pcb_by_addr(bdaddr_p bdaddr)
|
||||
mtx_unlock(&p->pcb_mtx);
|
||||
}
|
||||
|
||||
if (p1 != NULL)
|
||||
mtx_lock(&p1->pcb_mtx);
|
||||
|
||||
return (p1);
|
||||
} /* ng_btsocket_sco_pcb_by_addr */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user