Module Name: src
Committed By: ozaki-r
Date: Sun Mar 5 11:07:46 UTC 2017
Modified Files:
src/sys/netinet: ip_output.c
Log Message:
Fix the position of curlwp_bindx; it should be after if_put
To generate a diff of this commit:
cvs rdiff -u -r1.275 -r1.276 src/sys/netinet/ip_output.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/ip_output.c
diff -u src/sys/netinet/ip_output.c:1.275 src/sys/netinet/ip_output.c:1.276
--- src/sys/netinet/ip_output.c:1.275 Fri Mar 3 07:13:06 2017
+++ src/sys/netinet/ip_output.c Sun Mar 5 11:07:46 2017
@@ -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 @@ ip_drop_membership(struct ip_moptions *i
--imo->imo_num_memberships;
error = 0;
out:
- curlwp_bindx(bound);
if_put(ifp, &psref);
+ curlwp_bindx(bound);
return error;
}