Colin Ian King ed4b197ddd ACPI / EC: Free saved_ec on error exit path
Smatch detected two memory leaks on saved_ec:

drivers/acpi/ec.c:1070 acpi_ec_ecdt_probe() warn: possible
  memory leak of 'saved_ec'
drivers/acpi/ec.c:1109 acpi_ec_ecdt_probe() warn: possible
  memory leak of 'saved_ec'

Free saved_ec on these two error exit paths to stop the memory
leak.  Note that saved_ec maybe null, but kfree on null is allowed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-07-07 13:20:30 +02:00
..
2013-09-30 19:46:13 +02:00
2014-06-03 23:11:52 +02:00
2014-06-03 23:12:27 +02:00
2014-02-05 01:06:21 +01:00
2013-12-07 01:38:45 +01:00
2014-06-03 23:12:20 +02:00
2013-01-17 14:11:06 +01:00
2014-05-26 14:38:57 +02:00