]> 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>
Fri, 28 Sep 2012 00:18:48 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Oct 2012 03:12:07 +0000 (14:12 +1100)
commit1a812974a54c3f0c2b1020e0a45adac651e32dd5
tree96dbf48ab8aa89bda723bbb90de648f9739a07fc
parent6183826f7b90dc0b4b2b999327e6037555a19ad6
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