Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xenbus Continue scanning for other frontends wh...
details: https://anonhg.NetBSD.org/src/rev/f6f4179cca09
branches: trunk
changeset: 764105:f6f4179cca09
user: cegger <cegger%NetBSD.org@localhost>
date: Mon Apr 11 15:00:49 2011 +0000
description:
Continue scanning for other frontends when initialization
of one frontend failed. Bug reported by Konrad Wilk on port-xen@.
Fix this for all error pathes within the loop.
diffstat:
sys/arch/xen/xenbus/xenbus_probe.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 64330fb8adf1 -r f6f4179cca09 sys/arch/xen/xenbus/xenbus_probe.c
--- a/sys/arch/xen/xenbus/xenbus_probe.c Mon Apr 11 14:49:09 2011 +0000
+++ b/sys/arch/xen/xenbus/xenbus_probe.c Mon Apr 11 15:00:49 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xenbus_probe.c,v 1.29 2011/03/30 22:34:03 jym Exp $ */
+/* $NetBSD: xenbus_probe.c,v 1.30 2011/04/11 15:00:49 cegger Exp $ */
/******************************************************************************
* Talks to Xen Store to figure out what devices we have.
*
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenbus_probe.c,v 1.29 2011/03/30 22:34:03 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenbus_probe.c,v 1.30 2011/04/11 15:00:49 cegger Exp $");
#if 0
#define DPRINTK(fmt, args...) \
@@ -294,6 +294,7 @@
return err;
for (i = 0; i < dir_n; i++) {
+ err = 0;
/*
* add size of path to size of xenbus_device. xenbus_device
* already has room for one char in xbusd_path.
Home |
Main Index |
Thread Index |
Old Index