Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet fix fat fingered KASSERT(solocked(0)) -> KASSERT...
details: https://anonhg.NetBSD.org/src/rev/17c24d5b15eb
branches: trunk
changeset: 330579:17c24d5b15eb
user: rtr <rtr%NetBSD.org@localhost>
date: Mon Jul 14 13:39:18 2014 +0000
description:
fix fat fingered KASSERT(solocked(0)) -> KASSERT(solocked(so)) mistake.
spotted by Takahiro HAYASHI
diffstat:
sys/netinet/raw_ip.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 61b254ca1b84 -r 17c24d5b15eb sys/netinet/raw_ip.c
--- a/sys/netinet/raw_ip.c Mon Jul 14 13:20:41 2014 +0000
+++ b/sys/netinet/raw_ip.c Mon Jul 14 13:39:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: raw_ip.c,v 1.133 2014/07/09 14:41:42 rtr Exp $ */
+/* $NetBSD: raw_ip.c,v 1.134 2014/07/14 13:39:18 rtr Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.133 2014/07/09 14:41:42 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.134 2014/07/14 13:39:18 rtr Exp $");
#include "opt_inet.h"
#include "opt_compat_netbsd.h"
@@ -594,7 +594,7 @@
static int
rip_peeraddr(struct socket *so, struct mbuf *nam)
{
- KASSERT(solocked(0));
+ KASSERT(solocked(so));
KASSERT(sotoinpcb(so) != NULL);
KASSERT(nam != NULL);
@@ -605,7 +605,7 @@
static int
rip_sockaddr(struct socket *so, struct mbuf *nam)
{
- KASSERT(solocked(0));
+ KASSERT(solocked(so));
KASSERT(sotoinpcb(so) != NULL);
KASSERT(nam != NULL);
Home |
Main Index |
Thread Index |
Old Index