]> err.no Git - linux-2.6/blobdiff - drivers/acpi/acpi_memhotplug.c
[MTD] physmap: Add support for 64 bit resources
[linux-2.6] / drivers / acpi / acpi_memhotplug.c
index 150112ae48ed7e6bfdd4afefa7d17b7bd244845d..cd946ed192d3e38a1539fcd58abfcfaf06258c26 100644 (file)
@@ -395,10 +395,9 @@ static int acpi_memory_device_add(struct acpi_device *device)
        if (!device)
                return -EINVAL;
 
-       mem_device = kmalloc(sizeof(struct acpi_memory_device), GFP_KERNEL);
+       mem_device = kzalloc(sizeof(struct acpi_memory_device), GFP_KERNEL);
        if (!mem_device)
                return -ENOMEM;
-       memset(mem_device, 0, sizeof(struct acpi_memory_device));
 
        INIT_LIST_HEAD(&mem_device->res_list);
        mem_device->device = device;