diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 3bf7764659a4f5643557eb2aee4b5b327da4f88f..d5e6ac5042d891a30a9ae8228beb936da1cc3642 100644 --- 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;