summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/of/address.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/of/address.c')
-rw-r--r--kernel/drivers/of/address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/of/address.c b/kernel/drivers/of/address.c
index 6906a3f61..8bfda6ade 100644
--- a/kernel/drivers/of/address.c
+++ b/kernel/drivers/of/address.c
@@ -712,7 +712,7 @@ int __weak pci_register_io_range(phys_addr_t addr, resource_size_t size)
}
/* add the range to the list */
- range = kzalloc(sizeof(*range), GFP_KERNEL);
+ range = kzalloc(sizeof(*range), GFP_ATOMIC);
if (!range) {
err = -ENOMEM;
goto end_register;