From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> Signed-off-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> --- Assemble.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assemble.c b/Assemble.c index 131f871..b392214 100644 --- a/Assemble.c +++ b/Assemble.c @@ -688,7 +688,11 @@ static int load_devices(struct devs *devices, char *devmap, close(dfd); } - stat(devname, &stb); + if (stat(devname, &stb)) { + pr_err("Unsable to stat(%s) - skipping device.\n", + devname); + continue; + } if (c->verbose > 0) pr_err("%s is identified as a member of %s, slot %d%s.\n", -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html