Commit 25d163ee authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] fix to the stack-audit patch

http://bugzilla.kernel.org/show_bug.cgi?id=2901Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 26ad1247
......@@ -289,7 +289,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