Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63960
b: refs/heads/master
c: 07ddf76
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Len Brown committed Aug 4, 2007
1 parent c2ee12a commit 526d19d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c010de7506954e973abfab5c5999c5a97f7a73e
refs/heads/master: 07ddf768d860bee7bd6581b7af3ce1009dbd05d0
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,14 +730,14 @@ static int acpi_ec_add(struct acpi_device *device)
static int acpi_ec_remove(struct acpi_device *device, int type)
{
struct acpi_ec *ec;
struct acpi_ec_query_handler *handler;
struct acpi_ec_query_handler *handler, *tmp;

if (!device)
return -EINVAL;

ec = acpi_driver_data(device);
mutex_lock(&ec->lock);
list_for_each_entry(handler, &ec->list, node) {
list_for_each_entry_safe(handler, tmp, &ec->list, node) {
list_del(&handler->node);
kfree(handler);
}
Expand Down

0 comments on commit 526d19d

Please sign in to comment.