Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet fix: unlock in reverse order



details:   https://anonhg.NetBSD.org/src/rev/96f89b784258
branches:  trunk
changeset: 346641:96f89b784258
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Mon Jul 25 00:10:38 2016 +0000

description:
fix: unlock in reverse order

diffstat:

 sys/netinet/tcp_timer.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r f02aafd0fe40 -r 96f89b784258 sys/netinet/tcp_timer.c
--- a/sys/netinet/tcp_timer.c   Sun Jul 24 18:04:04 2016 +0000
+++ b/sys/netinet/tcp_timer.c   Mon Jul 25 00:10:38 2016 +0000
@@ -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_trace(TA_USER, ostate, tp, NULL,
                    PRU_SLOWTIMO | (TCPT_2MSL << 8));
 #endif
+       KERNEL_UNLOCK_ONE(NULL);
        mutex_exit(softnet_lock);
-       KERNEL_UNLOCK_ONE(NULL);
 }



Home | Main Index | Thread Index | Old Index