Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Fix the position of curlwp_bindx; it should be a...



details:   https://anonhg.NetBSD.org/src/rev/026c8547a6ed
branches:  trunk
changeset: 822154:026c8547a6ed
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Sun Mar 05 11:07:46 2017 +0000

description:
Fix the position of curlwp_bindx; it should be after if_put

diffstat:

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

diffs (28 lines):

diff -r f32e84254500 -r 026c8547a6ed sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Sun Mar 05 09:27:52 2017 +0000
+++ b/sys/netinet/ip_output.c   Sun Mar 05 11:07:46 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.275 2017/03/03 07:13:06 ozaki-r Exp $  */
+/*     $NetBSD: ip_output.c,v 1.276 2017/03/05 11:07:46 ozaki-r Exp $  */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.275 2017/03/03 07:13:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.276 2017/03/05 11:07:46 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1701,8 +1701,8 @@
        --imo->imo_num_memberships;
        error = 0;
 out:
+       if_put(ifp, &psref);
        curlwp_bindx(bound);
-       if_put(ifp, &psref);
        return error;
 }
 



Home | Main Index | Thread Index | Old Index