diff options
Diffstat (limited to 'drivers/acpi/pci_root.c')
-rw-r--r-- | drivers/acpi/pci_root.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index b9c52cdbf658..a860efa2c562 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -165,10 +165,9 @@ static int acpi_pci_root_add(struct acpi_device *device) | |||
165 | if (!device) | 165 | if (!device) |
166 | return -EINVAL; | 166 | return -EINVAL; |
167 | 167 | ||
168 | root = kmalloc(sizeof(struct acpi_pci_root), GFP_KERNEL); | 168 | root = kzalloc(sizeof(struct acpi_pci_root), GFP_KERNEL); |
169 | if (!root) | 169 | if (!root) |
170 | return -ENOMEM; | 170 | return -ENOMEM; |
171 | memset(root, 0, sizeof(struct acpi_pci_root)); | ||
172 | INIT_LIST_HEAD(&root->node); | 171 | INIT_LIST_HEAD(&root->node); |
173 | 172 | ||
174 | root->device = device; | 173 | root->device = device; |