Correct the latest patches for other arches
Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
parent
a3576b784d
commit
cd3d796852
@ -24,7 +24,7 @@ diff -Naur acpica-unix2-20200214.orig/source/components/debugger/dbtest.c acpica
|
|||||||
/* Write a new value */
|
/* Write a new value */
|
||||||
|
|
||||||
+ ValueToWrite = AcpiOsAllocateZeroed(strlen(TestStr)+1);
|
+ ValueToWrite = AcpiOsAllocateZeroed(strlen(TestStr)+1);
|
||||||
+ strncpy(ValueToWrite, TestStr, strlen(TestStr));
|
+ strncpy(ValueToWrite, TestStr, strlen(TestStr)+1);
|
||||||
+
|
+
|
||||||
WriteValue.Type = ACPI_TYPE_STRING;
|
WriteValue.Type = ACPI_TYPE_STRING;
|
||||||
WriteValue.String.Length = strlen (ValueToWrite);
|
WriteValue.String.Length = strlen (ValueToWrite);
|
||||||
|
@ -6,7 +6,7 @@ diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acp
|
|||||||
UINT32 i;
|
UINT32 i;
|
||||||
BOOLEAN FoundBadChar = FALSE;
|
BOOLEAN FoundBadChar = FALSE;
|
||||||
- UINT32 OriginalName;
|
- UINT32 OriginalName;
|
||||||
+ char OriginalName[ACPI_NAMESEG+SIZE+1];
|
+ char OriginalName[ACPI_NAMESEG_SIZE+1];
|
||||||
|
|
||||||
|
|
||||||
ACPI_FUNCTION_NAME (UtRepairName);
|
ACPI_FUNCTION_NAME (UtRepairName);
|
||||||
@ -15,14 +15,14 @@ diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acp
|
|||||||
ACPI_WARNING ((AE_INFO,
|
ACPI_WARNING ((AE_INFO,
|
||||||
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
|
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
|
||||||
- OriginalName, Name));
|
- OriginalName, Name));
|
||||||
+ (unsigned int)OriginalName, Name));
|
+ (unsigned int)*OriginalName, Name));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
|
ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
|
||||||
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
|
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
|
||||||
- OriginalName, Name));
|
- OriginalName, Name));
|
||||||
+ (unsigned int)OriginalName, Name));
|
+ (unsigned int)*OriginalName, Name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user