Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336675
b: refs/heads/master
c: ccf7804
h: refs/heads/master
i:
  336673: b8abd0e
  336671: 68dc67e
v: v3
  • Loading branch information
Lv Zheng authored and Rafael J. Wysocki committed Nov 14, 2012
1 parent 02f2bb1 commit 9d065c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9743fdea9f9473cd2440741342a5ed8e19eb51bd
refs/heads/master: ccf78040265bfce2aac5766e1ddf4fc3dde36899
4 changes: 4 additions & 0 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ static void acpi_device_release(struct device *dev)
struct acpi_device *acpi_dev = to_acpi_device(dev);

acpi_free_ids(acpi_dev);
kfree(acpi_dev->pnp.unique_id);
kfree(acpi_dev);
}

Expand Down Expand Up @@ -1211,6 +1212,9 @@ static void acpi_device_set_id(struct acpi_device *device)
device->pnp.bus_address = info->address;
device->flags.bus_address = 1;
}
if (info->valid & ACPI_VALID_UID)
device->pnp.unique_id = kstrdup(info->unique_id.string,
GFP_KERNEL);

kfree(info);

Expand Down

0 comments on commit 9d065c1

Please sign in to comment.