]> git.karo-electronics.de Git - karo-tx-linux.git/commit
acpi_memhotplug.c: fix memory leak when memory device is unbound from the module...
authorWen Congyang <wency@cn.fujitsu.com>
Tue, 14 Aug 2012 03:22:24 +0000 (13:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 23 Aug 2012 04:50:23 +0000 (14:50 +1000)
commitffe7b84cda08b2682b9c6e03a377b4c46f40df45
treefa51a0b370892b16ad037d13c6ab73aa0b194051
parente86eeff28495753e16e75d9617c9cf0b7257f866
acpi_memhotplug.c: fix memory leak when memory device is unbound from the module acpi_memhotplug

We allocate memory to store acpi_memory_info, so we should free it before
freeing mem_device.

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