aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 9f13e13506ef..bba87324c9b2 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -5628,10 +5628,7 @@ static int get_bitmap_file(struct mddev * mddev, void __user * arg)
5628 char *ptr, *buf = NULL; 5628 char *ptr, *buf = NULL;
5629 int err = -ENOMEM; 5629 int err = -ENOMEM;
5630 5630
5631 if (md_allow_write(mddev)) 5631 file = kmalloc(sizeof(*file), GFP_NOIO);
5632 file = kmalloc(sizeof(*file), GFP_NOIO);
5633 else
5634 file = kmalloc(sizeof(*file), GFP_KERNEL);
5635 5632
5636 if (!file) 5633 if (!file)
5637 goto out; 5634 goto out;