Blame SOURCES/cdacc71af1-acpica.patch

305057
commit cdacc71af14045c08d1b357981ba36ae722dd47e
305057
Author:     Robert Moore <Robert.Moore@intel.com>
305057
AuthorDate: Fri Jun 19 09:43:28 2015 -0700
305057
Commit:     Robert Moore <Robert.Moore@intel.com>
305057
CommitDate: Fri Jun 19 09:43:28 2015 -0700
305057
305057
    iASL: Add a status check after an fopen().
305057
    
305057
    In FlCheckForAscii. ACPICA BZ 1170.
305057
305057
diff --git a/source/compiler/aslascii.c b/source/compiler/aslascii.c
305057
index 7ff1c4a..f164e98 100644
305057
--- a/source/compiler/aslascii.c
305057
+++ b/source/compiler/aslascii.c
305057
@@ -177,6 +177,11 @@ FlCheckForAscii (
305057
     /* Open file in text mode so file offset is always accurate */
305057
 
305057
     Handle = fopen (Filename, "rb");
305057
+    if (!Handle)
305057
+    {
305057
+        perror ("Could not open input file");
305057
+        return (AE_ERROR);
305057
+    }
305057
 
305057
     Status.Line = 1;
305057
     Status.Offset = 0;