Merge branch 'pm-cpuidle'
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / acpi_memhotplug.c
index c711d1144044ec18b47a8aad9f0c0f43e5f5f690..999adb5499c7270626466a7d74870531c3e3ae28 100644 (file)
@@ -323,6 +323,7 @@ static int acpi_memory_device_add(struct acpi_device *device,
        /* Get the range from the _CRS */
        result = acpi_memory_get_device_resources(mem_device);
        if (result) {
+               device->driver_data = NULL;
                kfree(mem_device);
                return result;
        }