--- zzzz-none-000/linux-3.10.107/drivers/acpi/acpica/nsconvert.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/acpi/acpica/nsconvert.c 2021-02-04 17:41:59.000000000 +0000 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2013, Intel Corp. + * Copyright (C) 2000 - 2015, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -103,6 +103,7 @@ break; default: + return (AE_AML_OPERAND_TYPE); } @@ -186,11 +187,12 @@ * Copy the raw buffer data with no transform. String is already NULL * terminated at Length+1. */ - ACPI_MEMCPY(new_object->string.pointer, - original_object->buffer.pointer, length); + memcpy(new_object->string.pointer, + original_object->buffer.pointer, length); break; default: + return (AE_AML_OPERAND_TYPE); } @@ -249,9 +251,9 @@ return (AE_NO_MEMORY); } - ACPI_MEMCPY(new_object->buffer.pointer, - original_object->string.pointer, - original_object->string.length); + memcpy(new_object->buffer.pointer, + original_object->string.pointer, + original_object->string.length); break; case ACPI_TYPE_PACKAGE: @@ -294,6 +296,7 @@ break; default: + return (AE_AML_OPERAND_TYPE); }