diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 8780c95f9b86ecddd24b038d286c182fc18f34c2..00915e6ec4106ab8bbd70d507465439020ad0ff1 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -3158,6 +3158,7 @@ static int raid1_run(struct mddev *mddev) * RAID1 needs at least one disk in active */ if (conf->raid_disks - mddev->degraded < 1) { + md_unregister_thread(&conf->thread); ret = -EINVAL; goto abort; }