Toshi Kani d19f503e22 ACPI / memhotplug: Fix a stale pointer in error path
device->driver_data needs to be cleared when releasing its data,
mem_device, in an error path of acpi_memory_device_add().

The function evaluates the _CRS of memory device objects, and fails
when it gets an unexpected resource or cannot allocate memory.  A
kernel crash or data corruption may occur when the kernel accesses
the stale pointer.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: 2.6.32+ <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-07-15 01:26:18 +02:00
..
2013-06-28 12:59:02 +02:00
2013-03-25 00:13:15 +01:00
2013-06-19 23:34:58 +02:00
2013-04-28 01:54:08 +02:00
2013-06-28 13:00:38 +02:00
2013-06-28 13:00:38 +02:00
2013-04-28 01:54:08 +02:00
2013-06-28 13:00:38 +02:00
2013-06-29 15:03:44 +02:00
2013-04-09 14:13:32 -04:00
2013-01-17 14:11:06 +01:00