Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern unp_connect: fix an assertion
details: https://anonhg.NetBSD.org/src/rev/232b5012a11d
branches: trunk
changeset: 758139:232b5012a11d
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Oct 21 11:14:39 2010 +0000
description:
unp_connect: fix an assertion
diffstat:
sys/kern/uipc_usrreq.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9ba24c5f425c -r 232b5012a11d sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c Thu Oct 21 11:13:43 2010 +0000
+++ b/sys/kern/uipc_usrreq.c Thu Oct 21 11:14:39 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_usrreq.c,v 1.131 2010/10/21 11:13:43 yamt Exp $ */
+/* $NetBSD: uipc_usrreq.c,v 1.132 2010/10/21 11:14:39 yamt Exp $ */
/*-
* Copyright (c) 1998, 2000, 2004, 2008, 2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.131 2010/10/21 11:13:43 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.132 2010/10/21 11:14:39 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1001,7 +1001,7 @@
* see SO_ACCEPTCONN set on the endpoint, then it must
* be locked by the domain-wide uipc_lock.
*/
- KASSERT((so->so_options & SO_ACCEPTCONN) == 0 ||
+ KASSERT((so2->so_options & SO_ACCEPTCONN) == 0 ||
so2->so_lock == uipc_lock);
if ((so2->so_options & SO_ACCEPTCONN) == 0 ||
(so3 = sonewconn(so2, 0)) == NULL) {
Home |
Main Index |
Thread Index |
Old Index