aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utfileio.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2015-05-21 10:30:38 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-05-22 03:22:19 +0200
commita737222240848c771b2bc44880d3253fb7c03e13 (patch)
tree827cd629a6f74d8f2e6f2af72849f852b542f690 /drivers/acpi/acpica/utfileio.c
parentACPICA: Parser: Move a couple externals to the proper header. (diff)
downloadlinux-dev-a737222240848c771b2bc44880d3253fb7c03e13.tar.xz
linux-dev-a737222240848c771b2bc44880d3253fb7c03e13.zip
ACPICA: iASL: Enhance detection of non-ascii or corrupted input files.
ACPICA commit 08170904011f1e8f817d9e3a9f2bb2438aeacf60 For the compiler part (not disassembler). - Characters not within a comment must be be ASCII (0-0x7F), and now either printable or a "space" character. Provides better detection of files that cannot be compiled. This patch only affects iASL which is not in the Linux upstream. Link: https://github.com/acpica/acpica/commit/08170904 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/acpi/acpica/utfileio.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/utfileio.c b/drivers/acpi/acpica/utfileio.c
index 7e1168be39fa..f72c53c05d64 100644
--- a/drivers/acpi/acpica/utfileio.c
+++ b/drivers/acpi/acpica/utfileio.c
@@ -198,11 +198,8 @@ acpi_ut_read_table(FILE * fp,
table_header.length, file_size);
#ifdef ACPI_ASL_COMPILER
- status = fl_check_for_ascii(fp, NULL, FALSE);
- if (ACPI_SUCCESS(status)) {
- acpi_os_printf
- ("File appears to be ASCII only, must be binary\n");
- }
+ acpi_os_printf("File is corrupt or is ASCII text -- "
+ "it must be a binary file\n");
#endif
return (AE_BAD_HEADER);
}