From: Wen Congyang Date: Fri, 16 Nov 2012 01:08:16 +0000 (+0100) Subject: ACPI / memhotplug: free memory device if acpi_memory_enable_device() failed X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~88^2~13^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0b7b24dd9559fcda0f8bfd6acbcad81682c4fdd;p=pandora-kernel.git ACPI / memhotplug: free memory device if acpi_memory_enable_device() failed If acpi_memory_enable_device() fails, acpi_memory_enable_device() will return a non-zero value, which means we fail to bind the memory device to this driver. So we should free memory device before acpi_memory_device_add() returns. Signed-off-by: Wen Congyang Reviewed-by: Yasuaki Ishimatsu Acked-by: David Rientjes Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed