X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Kill.c;h=f5c30e97ea61f074c4ef5568bc993c2d54a0f2ea;hp=3d1810f04fbcc820f4f140caee8abf98411bb6db;hb=0f22b998fb9cf8478810b89cd50fa5b4fbf11d38;hpb=64436f0628a14f4e979b93bea57aba4b4c6143e8;ds=sidebyside diff --git a/Kill.c b/Kill.c index 3d1810f0..f5c30e97 100644 --- a/Kill.c +++ b/Kill.c @@ -53,7 +53,7 @@ int Kill(char *dev, struct supertype *st, int force, int quiet, int noexcl) } if (st == NULL) st = guess_super(fd); - if (st == NULL) { + if (st == NULL || st->ss->init_super == NULL) { if (!quiet) fprintf(stderr, Name ": Unrecognised md component device - %s\n", dev); close(fd);