Don't use ELF entry point.
[yaboot.git] / second / fs_of.c
index 7a22117b2e6f41176f7feaf583e95e3d87c091f2..e7b37bdd05742c915125cf787c611d2b49a1fb01 100644 (file)
@@ -90,16 +90,14 @@ of_open(struct boot_file_t* file, const char* dev_name,
      DEBUG_ENTER;
      DEBUG_OPEN;
 
-     if (part->sys_ind == LINUX_RAID)
-     {
-         DEBUG_F("skipping because partition is marked LINUX_RAID\n");
-         DEBUG_LEAVE(FILE_ERR_BAD_FSYS);
-         return FILE_ERR_BAD_FSYS;
-     }
-
      strncpy(buffer, dev_name, 768);
      strcat(buffer, ":");
      if (part) {
+          if (part->sys_ind == LINUX_RAID) {
+              DEBUG_F("skipping because partition is marked LINUX_RAID\n");
+              DEBUG_LEAVE(FILE_ERR_BAD_FSYS);
+              return FILE_ERR_BAD_FSYS;
+         }
          char pn[3];
          sprintf(pn, "%02d", part->part_number);
          strcat(buffer, pn);