Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Initialize the temporary pmf_qual_t in pmf_device_s...
details: https://anonhg.NetBSD.org/src/rev/adc9c67b3a3b
branches: trunk
changeset: 752143:adc9c67b3a3b
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Feb 17 00:15:24 2010 +0000
description:
Initialize the temporary pmf_qual_t in pmf_device_subtree_release()
to avoid a failed ds != NULL assertion, later.
diffstat:
sys/kern/kern_pmf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r db5ef585c47d -r adc9c67b3a3b sys/kern/kern_pmf.c
--- a/sys/kern/kern_pmf.c Tue Feb 16 23:20:30 2010 +0000
+++ b/sys/kern/kern_pmf.c Wed Feb 17 00:15:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_pmf.c,v 1.31 2010/01/08 20:07:14 dyoung Exp $ */
+/* $NetBSD: kern_pmf.c,v 1.32 2010/02/17 00:15:24 dyoung Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_pmf.c,v 1.31 2010/01/08 20:07:14 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_pmf.c,v 1.32 2010/02/17 00:15:24 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -861,6 +861,8 @@
device_pmf_remove_suspensor(dv, qual);
+ pmf_qual_recursive_copy(&pq, qual);
+
return pmf_device_descendants_release(dv, &pq);
}
Home |
Main Index |
Thread Index |
Old Index