projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f33be0
)
ACPI / scan: Correct error return value of create_modalias()
author
Mika Westerberg
<mika.westerberg@linux.intel.com>
Fri, 12 Sep 2014 08:33:10 +0000
(11:33 +0300)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 22 Sep 2014 12:11:43 +0000
(14:11 +0200)
There is a typo, it should be negative -errno instead.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/scan.c
b/drivers/acpi/scan.c
index 3bf7764659a4f5643557eb2aee4b5b327da4f88f..d5e6ac5042d891a30a9ae8228beb936da1cc3642 100644
(file)
--- a/
drivers/acpi/scan.c
+++ b/
drivers/acpi/scan.c
@@
-130,7
+130,7
@@
static int create_modalias(struct acpi_device *acpi_dev, char *modalias,
list_for_each_entry(id, &acpi_dev->pnp.ids, list) {
count = snprintf(&modalias[len], size, "%s:", id->id);
if (count < 0)
- return EINVAL;
+ return
-
EINVAL;
if (count >= size)
return -ENOMEM;
len += count;