projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'overflow-v4.18-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git]
/
drivers
/
of
/
platform.c
diff --git
a/drivers/of/platform.c
b/drivers/of/platform.c
index
59731a9
..
6925d99
100644
(file)
--- a/
drivers/of/platform.c
+++ b/
drivers/of/platform.c
@@
-129,7
+129,7
@@
struct platform_device *of_device_alloc(struct device_node *np,
/* Populate the resource table */
if (num_irq || num_reg) {
- res = k
zalloc(sizeof(*res) * (num_irq + num_reg
), GFP_KERNEL);
+ res = k
calloc(num_irq + num_reg, sizeof(*res
), GFP_KERNEL);
if (!res) {
platform_device_put(dev);
return NULL;