aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 373ab92e367b..63c566165189 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2430,7 +2430,7 @@ static int set_bitmap_file(mddev_t *mddev, int fd)
2430{ 2430{
2431 int err; 2431 int err;
2432 2432
2433 if (mddev->pers) 2433 if (mddev->pers || mddev->bitmap_file)
2434 return -EBUSY; 2434 return -EBUSY;
2435 2435
2436 mddev->bitmap_file = fget(fd); 2436 mddev->bitmap_file = fget(fd);