summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/dbconvert.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/dbconvert.c')
-rw-r--r--drivers/acpi/acpica/dbconvert.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/dbconvert.c b/drivers/acpi/acpica/dbconvert.c
index 9fd9a98a9cbe..2b84ac093698 100644
--- a/drivers/acpi/acpica/dbconvert.c
+++ b/drivers/acpi/acpica/dbconvert.c
@@ -106,6 +106,10 @@ acpi_db_convert_to_buffer(char *string, union acpi_object *object)
u8 *buffer;
acpi_status status;
+ /* Skip all preceding white space */
+
+ acpi_ut_remove_whitespace(&string);
+
/* Generate the final buffer length */
for (i = 0, length = 0; string[i];) {