[PATCH v2 2/4] ACPI / EC: Fix a memory leakage issue in acpi_ec_add()

2016-09-07 Thread Lv Zheng
When the handler installation failed, there was no code to free the allocated EC device. This patch fixes this memory leakage issue. Link: https://bugzilla.kernel.org/show_bug.cgi?id=115021 Reported-and-tested-by: Luya Tshimbalanga Tested-by: Jonh Henderson

[PATCH v2 2/4] ACPI / EC: Fix a memory leakage issue in acpi_ec_add()

2016-09-07 Thread Lv Zheng
When the handler installation failed, there was no code to free the allocated EC device. This patch fixes this memory leakage issue. Link: https://bugzilla.kernel.org/show_bug.cgi?id=115021 Reported-and-tested-by: Luya Tshimbalanga Tested-by: Jonh Henderson Signed-off-by: Lv Zheng Cc: Peter Wu