Re: [PATCH -next v2] acpi/hmat: fix memory leaks in hmat_init()

2019-04-10 Thread Rafael J. Wysocki
On Wed, Apr 10, 2019 at 4:15 AM Qian Cai wrote: > > The commit 665ac7e92757 ("acpi/hmat: Register processor domain to its > memory") introduced some memory leaks below due to it fails to release > the heap memory in an error path, and then those statically-allocated > __initdata memory which

[PATCH -next v2] acpi/hmat: fix memory leaks in hmat_init()

2019-04-09 Thread Qian Cai
The commit 665ac7e92757 ("acpi/hmat: Register processor domain to its memory") introduced some memory leaks below due to it fails to release the heap memory in an error path, and then those statically-allocated __initdata memory which reference them get freed during boot renders those heap memory