diff options
Diffstat (limited to 'drivers/acpi/executer/exoparg3.c')
-rw-r--r-- | drivers/acpi/executer/exoparg3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/executer/exoparg3.c b/drivers/acpi/executer/exoparg3.c index 6a3a883cb8a3..8da794ec35b0 100644 --- a/drivers/acpi/executer/exoparg3.c +++ b/drivers/acpi/executer/exoparg3.c | |||
@@ -208,6 +208,7 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state) | |||
208 | /* If the requested length is zero, don't allocate a buffer */ | 208 | /* If the requested length is zero, don't allocate a buffer */ |
209 | 209 | ||
210 | if (length > 0) { | 210 | if (length > 0) { |
211 | |||
211 | /* Allocate a new buffer for the Buffer */ | 212 | /* Allocate a new buffer for the Buffer */ |
212 | 213 | ||
213 | buffer = ACPI_MEM_CALLOCATE(length); | 214 | buffer = ACPI_MEM_CALLOCATE(length); |
@@ -225,6 +226,7 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state) | |||
225 | } | 226 | } |
226 | 227 | ||
227 | if (buffer) { | 228 | if (buffer) { |
229 | |||
228 | /* We have a buffer, copy the portion requested */ | 230 | /* We have a buffer, copy the portion requested */ |
229 | 231 | ||
230 | ACPI_MEMCPY(buffer, operand[0]->string.pointer + index, | 232 | ACPI_MEMCPY(buffer, operand[0]->string.pointer + index, |