mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
sctp: fix double unlock in case adding a remote address fails
Thanks to glebius@ for pointing to the problem.
Reported by: syzbot+1d5c164f1c10de84ad8a@syzkaller.appspotmail.com
Fixes: 2d5c48eccd ("sctp: Tighten up locking around sctp_aloc_assoc()")
(cherry picked from commit e8623834ca29b562687db945bdd12a3e2fe4aeb1)
This commit is contained in:
parent
0f962476d4
commit
4d2ba6d834
1 changed files with 0 additions and 1 deletions
|
|
@ -4233,7 +4233,6 @@ sctp_aloc_assoc_locked(struct sctp_inpcb *inp, struct sockaddr *firstaddr,
|
|||
LIST_REMOVE(stcb, sctp_asocs);
|
||||
LIST_REMOVE(stcb, sctp_tcbasocidhash);
|
||||
SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb);
|
||||
SCTP_INP_WUNLOCK(inp);
|
||||
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PCB, ENOBUFS);
|
||||
*error = ENOBUFS;
|
||||
return (NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue