]> 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>
Fri, 12 Oct 2012 04:22:47 +0000 (15:22 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 12 Oct 2012 04:25:04 +0000 (15:25 +1100)
commit769a2873c6fc5dafd2e7aacd39b58f59b1d6f0a0
tree1ddaf4a872e51df2e33269f9ac6f8c20042a5bdd
parent78be41f306ac81fe683b69d19afddb50a7114bb0
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