]> git.karo-electronics.de Git - karo-tx-linux.git/commit
acpi_memhotplug.c: remove memory info from list before freeing it
authorWen Congyang <wency@cn.fujitsu.com>
Tue, 14 Aug 2012 03:22:24 +0000 (13:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 Aug 2012 05:18:08 +0000 (15:18 +1000)
commit0f2f6a97c18ce3f6b3f17114aef1d54897a6f54a
tree4c5ed8d7f9c6ea40d3bd3f839bfdf4edcffb6c01
parent1f034a0eabb002f3ee080517c03be01fb8aad501
acpi_memhotplug.c: remove memory info from list before freeing it

We free info, but we forget to remove it from the list.  It will cause
unexpected problems when we access the list next time.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Cc: Len Brown <lenb@kernel.org>
Cc: "Brown, Len" <len.brown@intel.com>
Cc: Yasuaki ISIMATU <isimatu.yasuaki@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/acpi/acpi_memhotplug.c