]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
More carefully handle various cases in sysctl_drop(), such as unlocking
authorRobert Watson <rwatson@FreeBSD.org>
Sat, 24 Nov 2007 18:43:59 +0000 (18:43 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Sat, 24 Nov 2007 18:43:59 +0000 (18:43 +0000)
commit2b19cb1b87ad30d795679aa4efca9600c8c1a071
treecd37a51fcec4d18160aa1ab3681a42e5c6392145
parent3b6efc61a3f161a38b16d95092fa9346776746a5
More carefully handle various cases in sysctl_drop(), such as unlocking
the inpcb when there's an inpcb without associated timewait state, and
not unlocking when the inpcb has been freed.  This avoids a kernel panic
when tcpdrop(8) is run on a socket in the TIMEWAIT state.

MFC after: 3 days
Reported by: Rako <rako29 at gmail dot com>
sys/netinet/tcp_subr.c