git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uwb: fix error handling
[pandora-kernel.git]
/
drivers
/
acpi
/
scan.c
diff --git
a/drivers/acpi/scan.c
b/drivers/acpi/scan.c
index
449c556
..
8ab80ba
100644
(file)
--- a/
drivers/acpi/scan.c
+++ b/
drivers/acpi/scan.c
@@
-1062,13
+1062,12
@@
static void acpi_add_id(struct acpi_device *device, const char *dev_id)
if (!id)
return;
- id->id = k
malloc(strlen(dev_id) + 1
, GFP_KERNEL);
+ id->id = k
strdup(dev_id
, GFP_KERNEL);
if (!id->id) {
kfree(id);
return;
}
- strcpy(id->id, dev_id);
list_add_tail(&id->list, &device->pnp.ids);
}