From: Lv Zheng Date: Thu, 24 Sep 2015 06:54:40 +0000 (+0800) Subject: ACPI / EC: Fix a memory leak issue in acpi_ec_query() X-Git-Tag: omap-for-v4.3/fixes-rc5~56^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15b94fa32a422f4b97dc34e4b7060ec83d10bee5;p=pandora-kernel.git ACPI / EC: Fix a memory leak issue in acpi_ec_query() When query handler is not found, "result" is actually stil 0, and "struct acpi_ec_query" is not NULL, so the deletion code of "struct acpi_ec_query" at the end of the function cannot be invoked. As a consequence, memory leak can be observed. The issue is introduced by this commit: Commit: 02b771b64b73226052d6e731a0987db3b47281e9 Subject: ACPI / EC: Fix an issue caused by the serialized _Qxx This patch fixes such memory leakage. Fixes: 02b771b64b73 (ACPI / EC: Fix an issue caused by the serialized _Qxx evaluations) Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed