Module Name: src Committed By: cegger Date: Mon Apr 11 15:00:49 UTC 2011
Modified Files: src/sys/arch/xen/xenbus: xenbus_probe.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/arch/xen/xenbus/xenbus_probe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xenbus/xenbus_probe.c diff -u src/sys/arch/xen/xenbus/xenbus_probe.c:1.29 src/sys/arch/xen/xenbus/xenbus_probe.c:1.30 --- src/sys/arch/xen/xenbus/xenbus_probe.c:1.29 Wed Mar 30 22:34:03 2011 +++ src/sys/arch/xen/xenbus/xenbus_probe.c Mon Apr 11 15:00:49 2011 @@ -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.