Skip to content

Commit

Permalink
Merge branch 'acpi-ec'
Browse files Browse the repository at this point in the history
* acpi-ec:
  ACPI / EC: Fix a memory leak issue in acpi_ec_query()
  • Loading branch information
Rafael J. Wysocki committed Oct 1, 2015
2 parents dd953d3 + 15b94fa commit 01351eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/acpi/ec.c
Original file line number Diff line number Diff line change
@@ -1044,8 +1044,10 @@ static int acpi_ec_query(struct acpi_ec *ec, u8 *data)
goto err_exit;

mutex_lock(&ec->mutex);
result = -ENODATA;
list_for_each_entry(handler, &ec->list, node) {
if (value == handler->query_bit) {
result = 0;
q->handler = acpi_ec_get_query_handler(handler);
ec_dbg_evt("Query(0x%02x) scheduled",
q->handler->query_bit);

0 comments on commit 01351eb

Please sign in to comment.