ACPICA: Executer: Fix trivial issues in acpi_get_serial_access_bytes()
authorLv Zheng <lv.zheng@intel.com>
Tue, 8 Jul 2014 02:08:05 +0000 (10:08 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 8 Jul 2014 12:22:27 +0000 (14:22 +0200)
This patch fixes trivial issues in acpi_get_serial_access_bytes(), no real
functional bugs. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/exfield.c

index 12878e1982f77d5f69fcad7d266f7ac922f2a12d..1ff42c07b42b116b54bb0bb2166967f7578ea147 100644 (file)
@@ -56,7 +56,7 @@ acpi_ex_get_serial_access_length(u32 accessor_type, u32 access_length);
 
 /*******************************************************************************
  *
- * FUNCTION:    acpi_get_serial_access_bytes
+ * FUNCTION:    acpi_ex_get_serial_access_length
  *
  * PARAMETERS:  accessor_type   - The type of the protocol indicated by region
  *                                field access attributes
@@ -103,7 +103,7 @@ acpi_ex_get_serial_access_length(u32 accessor_type, u32 access_length)
        case AML_FIELD_ATTRIB_BLOCK_CALL:
        default:
 
-               length = ACPI_GSBUS_BUFFER_SIZE;
+               length = ACPI_GSBUS_BUFFER_SIZE - 2;
                break;
        }