]> 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>
Fri, 24 Aug 2012 06:43:44 +0000 (16:43 +1000)
commita6abd681cbc59bb8488bc5666495942dd422fca2
treef6c2e785895738d0b015e4b9c3ad689c81375c49
parent95a3c1db67ab88d6b927106cd80a8f7b3912edd2
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