Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/putter fix request leak.
details: https://anonhg.NetBSD.org/src/rev/4ffe99f29267
branches: trunk
changeset: 780464:4ffe99f29267
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Jul 26 10:13:33 2012 +0000
description:
fix request leak.
diffstat:
sys/dev/putter/putter.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r a36103d3cfc3 -r 4ffe99f29267 sys/dev/putter/putter.c
--- a/sys/dev/putter/putter.c Thu Jul 26 06:36:55 2012 +0000
+++ b/sys/dev/putter/putter.c Thu Jul 26 10:13:33 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: putter.c,v 1.32 2011/07/23 14:28:28 hannken Exp $ */
+/* $NetBSD: putter.c,v 1.33 2012/07/26 10:13:33 yamt Exp $ */
/*
* Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.32 2011/07/23 14:28:28 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.33 2012/07/26 10:13:33 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -392,6 +392,11 @@
mutex_exit(&pi_mtx);
/* hmm? suspicious locking? */
+ if (pi->pi_curput != NULL) {
+ pi->pi_pop->pop_releaseout(pi->pi_private, pi->pi_curopaq,
+ ENXIO);
+ pi->pi_curput = NULL;
+ }
while ((rv = pi->pi_pop->pop_close(pi->pi_private)) == ERESTART)
goto restart;
Home |
Main Index |
Thread Index |
Old Index