Commit 2c2eae81 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] dm: Correct GFP flag in dm_table_create()

From: Joe Thornber <thornber@redhat.com>

For some reason dm_table_create() was allocating GFP_NOIO rather than
GFP_KERNEL.
parent 6b1b56f9
...@@ -205,7 +205,7 @@ static int alloc_targets(struct dm_table *t, unsigned int num) ...@@ -205,7 +205,7 @@ static int alloc_targets(struct dm_table *t, unsigned int num)
int dm_table_create(struct dm_table **result, int mode, unsigned num_targets) int dm_table_create(struct dm_table **result, int mode, unsigned num_targets)
{ {
struct dm_table *t = kmalloc(sizeof(*t), GFP_NOIO); struct dm_table *t = kmalloc(sizeof(*t), GFP_KERNEL);
if (!t) if (!t)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment