diff options
author | Lv Zheng <lv.zheng@intel.com> | 2016-09-07 16:50:14 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-09-10 02:33:49 +0200 |
commit | 46922d2a3aff5122253d97e64500801c08f4f2c0 (patch) | |
tree | 4417cc9c60cd932e592a9940a6c0cbb7dca4eac9 /drivers/i2c | |
parent | 72c77b7ea9ce781f4987840984a462e4456ba98e (diff) |
ACPI / EC: Fix a memory leakage issue in acpi_ec_add()
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 <luya@fedoraproject.org>
Tested-by: Jonh Henderson <jw.hendy@gmail.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions