Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/dev/lib/libugenhc Don't leak control endpoint descr...
details: https://anonhg.NetBSD.org/src/rev/ec387836ed04
branches: trunk
changeset: 752195:ec387836ed04
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Feb 18 16:24:19 2010 +0000
description:
Don't leak control endpoint descriptors.
diffstat:
sys/rump/dev/lib/libugenhc/ugenhc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r a2404e7f7b13 -r ec387836ed04 sys/rump/dev/lib/libugenhc/ugenhc.c
--- a/sys/rump/dev/lib/libugenhc/ugenhc.c Thu Feb 18 16:14:55 2010 +0000
+++ b/sys/rump/dev/lib/libugenhc/ugenhc.c Thu Feb 18 16:24:19 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ugenhc.c,v 1.4 2010/02/18 16:13:30 pooka Exp $ */
+/* $NetBSD: ugenhc.c,v 1.5 2010/02/18 16:24:19 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.4 2010/02/18 16:13:30 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.5 2010/02/18 16:24:19 pooka Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -623,6 +623,8 @@
sc->sc_port_status = ~(UPS_CURRENT_CONNECT_STATUS
| UPS_PORT_ENABLED | UPS_PORT_POWER);
sc->sc_port_change = UPS_C_CONNECT_STATUS;
+
+ rumpuser_close(sc->sc_ugenfd[UGEN_EPT_CTRL], &error);
sc->sc_ugenfd[UGEN_EPT_CTRL] = -1;
xfer = sc->sc_intrxfer;
Home |
Main Index |
Thread Index |
Old Index