Skip to content

Commit 45abdc9

Browse files
Erik Schmaussrafaeljw
authored andcommitted
ACPICA: debugger: remove leading whitespaces when converting a string to a buffer
ACPICA commit 1b7228072f254a5b02625586ff7d561757b7fc2d By removing leading whitespaces, the conversion computes the correct number of elements in a given buffer or field encoding that contains leading whitespaces. Link: acpica/acpica@1b722807 Signed-off-by: Erik Schmauss <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 02b04f1 commit 45abdc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/acpi/acpica/dbconvert.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ acpi_db_convert_to_buffer(char *string, union acpi_object *object)
106106
u8 *buffer;
107107
acpi_status status;
108108

109+
/* Skip all preceding white space */
110+
111+
acpi_ut_remove_whitespace(&string);
112+
109113
/* Generate the final buffer length */
110114

111115
for (i = 0, length = 0; string[i];) {

0 commit comments

Comments
 (0)