Reacquire softnet_lock after calling soabort which returns with the socket
unlocked.
This commit is contained in:
parent
b6138e3eb7
commit
34ac358652
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcp_input.c,v 1.289 2008/07/04 18:22:21 ad Exp $ */
|
||||
/* $NetBSD: tcp_input.c,v 1.290 2008/07/28 18:41:07 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -145,7 +145,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.289 2008/07/04 18:22:21 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.290 2008/07/28 18:41:07 matt Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ipsec.h"
|
||||
|
@ -3894,6 +3894,7 @@ abort:
|
|||
if (so != NULL) {
|
||||
(void) soqremque(so, 1);
|
||||
(void) soabort(so);
|
||||
mutex_enter(softnet_lock);
|
||||
}
|
||||
s = splsoftnet();
|
||||
syn_cache_put(sc);
|
||||
|
|
Loading…
Reference in New Issue