Fix a small bug in the tcp_log_id where the bucket

was unlocked and yet the bucket-unlock flag was not
changed to false. This can cause a panic if INVARIANTS
is on and we go through the right path (though rare).
This fixes the correct bug :)

Reported by:	syzbot+179a1ad49f3c4c215fa2@syzkaller.appspotmail.com
Reviewed by:	tuexen@
This commit is contained in:
Randall Stewart 2019-04-10 18:58:11 +00:00
parent 394b62b7ab
commit 8021928623

View File

@ -752,6 +752,7 @@ refind:
RECHECK_INP();
if (tp->t_lib != NULL) {
TCPID_BUCKET_UNLOCK(tlb);
bucket_locked = false;
tlb = NULL;
goto restart;
}