Commit ba20db08 authored by Len Brown's avatar Len Brown

Merge intel.com:/home/lenb/src/26-stable-dev

into intel.com:/home/lenb/src/26-latest-dev
parents ea7e61d8 25d163ee
......@@ -333,7 +333,7 @@ acpi_pci_bind_root (
return_VALUE(-ENOMEM);
memset(pathname, 0, ACPI_PATHNAME_MAX);
buffer.length = sizeof(pathname);
buffer.length = ACPI_PATHNAME_MAX;
buffer.pointer = pathname;
if (!device || !id || !bus){
......
......@@ -917,7 +917,7 @@ acpi_thermal_write_trip_points (
if(!active)
return_VALUE(-ENOMEM);
if (!tz || (count > sizeof(limit_string) - 1)) {
if (!tz || (count > ACPI_THERMAL_MAX_LIMIT_STR_LEN - 1)) {
ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid argument\n"));
count = -EINVAL;
goto end;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment