]> 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>
Wed, 26 Sep 2012 01:32:57 +0000 (11:32 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:41:23 +0000 (15:41 +1000)
commit50ea78f6c1d8a091c8a4caa5b988da8ac854ca8e
tree0114a8a3ef33c8d4e60aab7b8cee0e35b51823cf
parente6f7a0297be0b1a988f9a64f19193005f57dc58e
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