From aca2f739576d32eba8df781a003840ac7a30b32a Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Tue, 13 Mar 2012 18:30:44 +0000 Subject: [PATCH] --- yaml --- r: 293987 b: refs/heads/master c: 42c46e6ba5461fcab289bf4a1b7160f94c10aa28 h: refs/heads/master i: 293985: c62d724773c92800f074644e6faeb4339ac4de22 293983: 3633f769698b1b5c48b97ac4943a179b2dea07f2 v: v3 --- [refs] | 2 +- trunk/drivers/xen/xenbus/xenbus_probe_frontend.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 7e0d6cbfbabf..766e20b9cad7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cf8e019b523a8caa95b56ff0ce62a4856b14395f +refs/heads/master: 42c46e6ba5461fcab289bf4a1b7160f94c10aa28 diff --git a/trunk/drivers/xen/xenbus/xenbus_probe_frontend.c b/trunk/drivers/xen/xenbus/xenbus_probe_frontend.c index 9c57819df51a..f20c5f178b40 100644 --- a/trunk/drivers/xen/xenbus/xenbus_probe_frontend.c +++ b/trunk/drivers/xen/xenbus/xenbus_probe_frontend.c @@ -53,6 +53,12 @@ static int xenbus_probe_frontend(struct xen_bus_type *bus, const char *type, char *nodename; int err; + /* ignore console/0 */ + if (!strncmp(type, "console", 7) && !strncmp(name, "0", 1)) { + DPRINTK("Ignoring buggy device entry console/0"); + return 0; + } + nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, name); if (!nodename) return -ENOMEM;