Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx> writes: > mdadm -IRs would exit with a non-zero status because of this. > > Reported-by: Xiao Ni <xni@xxxxxxxxxx> > Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx> > --- > Incremental.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Applied! Thanks, Jes > diff --git a/Incremental.c b/Incremental.c > index ba97b00..cc01d41 100644 > --- a/Incremental.c > +++ b/Incremental.c > @@ -1347,8 +1347,12 @@ restart: > > if (devnm && strcmp(devnm, me->devnm) != 0) > continue; > - if (devnm && me->metadata[0] == '/') { > + if (me->metadata[0] == '/') { > char *sl; > + > + if (!devnm) > + continue; > + > /* member array, need to work on container */ > strncpy(container, me->metadata+1, 32); > container[31] = 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