On Mon, 6 Dec 2010 06:40:40 +0000 "Hawrylewicz Czarnowski, Przemyslaw" <przemyslaw.hawrylewicz.czarnowski@xxxxxxxxx> wrote: > counterpart of 417f346ee0 for incremental. > If md device has metadata_version="none" super_by_fd() matches supertype=super0. > Call of load_container() dereferences null, so we have to forbid it. > > Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@xxxxxxxxx> > --- > Incremental.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/Incremental.c b/Incremental.c > index 8cae1ee..9399f5b 100644 > --- a/Incremental.c > +++ b/Incremental.c > @@ -134,7 +134,7 @@ int Incremental(char *devname, int verbose, int runstop, > if (must_be_container(dfd)) { > if (!st) > st = super_by_fd(dfd, NULL); > - if (st) > + if (st && st->ss->load_container) > rv = st->ss->load_container(st, dfd, NULL); > > close(dfd); Thanks. Applied. NeilBrown -- 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