diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 734bc0996390..4332fc2f25d4 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -2476,7 +2476,7 @@ slot_store(mdk_rdev_t *rdev, const char *buf, size_t len) | |||
2476 | if (rdev->raid_disk == -1) | 2476 | if (rdev->raid_disk == -1) |
2477 | return -EEXIST; | 2477 | return -EEXIST; |
2478 | /* personality does all needed checks */ | 2478 | /* personality does all needed checks */ |
2479 | if (rdev->mddev->pers->hot_add_disk == NULL) | 2479 | if (rdev->mddev->pers->hot_remove_disk == NULL) |
2480 | return -EINVAL; | 2480 | return -EINVAL; |
2481 | err = rdev->mddev->pers-> | 2481 | err = rdev->mddev->pers-> |
2482 | hot_remove_disk(rdev->mddev, rdev->raid_disk); | 2482 | hot_remove_disk(rdev->mddev, rdev->raid_disk); |