ACPI / memhotplug: don't allow to eject the memory device if it is being used
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 16 Nov 2012 01:10:37 +0000 (02:10 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Nov 2012 01:10:37 +0000 (02:10 +0100)
commit65479472571fbf91502b7854be45ec0026b5229e
tree1f9e40f833838971398dae6c61471fdcc0adb654
parente0b7b24dd9559fcda0f8bfd6acbcad81682c4fdd
ACPI / memhotplug: don't allow to eject the memory device if it is being used

We eject the memory device even if it is in use.  It is very dangerous,
and it will cause the kernel to be panicked.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_memhotplug.c