Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet PR/25749: Peter Postma: missing splx() in kernel.
details: https://anonhg.NetBSD.org/src/rev/b171ab1b579e
branches: trunk
changeset: 571208:b171ab1b579e
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 13 19:17:50 2004 +0000
description:
PR/25749: Peter Postma: missing splx() in kernel.
diffstat:
sys/netinet/igmp.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r b392f5a32b8b -r b171ab1b579e sys/netinet/igmp.c
--- a/sys/netinet/igmp.c Sat Nov 13 19:16:18 2004 +0000
+++ b/sys/netinet/igmp.c Sat Nov 13 19:17:50 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: igmp.c,v 1.38 2004/04/26 01:31:56 matt Exp $ */
+/* $NetBSD: igmp.c,v 1.39 2004/11/13 19:17:50 christos Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igmp.c,v 1.38 2004/04/26 01:31:56 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igmp.c,v 1.39 2004/11/13 19:17:50 christos Exp $");
#include "opt_mrouting.h"
@@ -425,8 +425,10 @@
if (!IN_LOCAL_GROUP(inm->inm_addr.s_addr) &&
(inm->inm_ifp->if_flags & IFF_LOOPBACK) == 0) {
report_type = rti_fill(inm);
- if (report_type == 0)
+ if (report_type == 0) {
+ splx(s);
return ENOMEM;
+ }
igmp_sendpkt(inm, report_type);
inm->inm_state = IGMP_DELAYING_MEMBER;
inm->inm_timer = IGMP_RANDOM_DELAY(
Home |
Main Index |
Thread Index |
Old Index