Module Name:    src
Committed By:   knakahara
Date:           Mon Jul 25 00:10:38 UTC 2016

Modified Files:
        src/sys/netinet: tcp_timer.c

Log Message:
fix: unlock in reverse order


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/netinet/tcp_timer.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/tcp_timer.c
diff -u src/sys/netinet/tcp_timer.c:1.90 src/sys/netinet/tcp_timer.c:1.91
--- src/sys/netinet/tcp_timer.c:1.90	Tue Apr 26 08:44:44 2016
+++ src/sys/netinet/tcp_timer.c	Mon Jul 25 00:10:38 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: tcp_timer.c,v 1.90 2016/04/26 08:44:44 ozaki-r Exp $	*/
+/*	$NetBSD: tcp_timer.c,v 1.91 2016/07/25 00:10:38 knakahara Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -93,7 +93,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_timer.c,v 1.90 2016/04/26 08:44:44 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_timer.c,v 1.91 2016/07/25 00:10:38 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -655,6 +655,6 @@ tcp_timer_2msl(void *arg)
 		tcp_trace(TA_USER, ostate, tp, NULL,
 		    PRU_SLOWTIMO | (TCPT_2MSL << 8));
 #endif
-	mutex_exit(softnet_lock);
 	KERNEL_UNLOCK_ONE(NULL);
+	mutex_exit(softnet_lock);
 }

Reply via email to