]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
Fix - if file can be opened but cannot be read for some reason - ignore it,
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 11 Oct 2005 13:02:17 +0000 (13:02 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 11 Oct 2005 13:02:17 +0000 (13:02 +0000)
and do not exit with error.

git-svn-id: svn://openib.tc.cornell.edu/gen1@109 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/opensm/user/opensm/osm_db_files.c

index 2d964691878eae08cf99d79968b9c6b7758e7035..0b2c13011ae01aaf80d1d5c980eae280e2ba7f07 100644 (file)
@@ -333,7 +333,6 @@ osm_db_restore(
                    "osm_db_restore: ERR 6904: "
                    " Fail to get key from line:%u : %s\n",
                    line_num, sLine);
-          status = 1;
           goto EndParsing;
         }
 
@@ -415,6 +414,7 @@ osm_db_restore(
 
  Exit:
   cl_spinlock_release( &p_domain_imp->lock );
+  OSM_LOG_EXIT( p_log );
   return status;
 }