From: eitan Date: Tue, 11 Oct 2005 13:02:17 +0000 (+0000) Subject: Fix - if file can be opened but cannot be read for some reason - ignore it, X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c4c703312c96b8c65283fcf9fa32b456e494b2e0;p=~shefty%2Frdma-win.git Fix - if file can be opened but cannot be read for some reason - ignore it, and do not exit with error. git-svn-id: svn://openib.tc.cornell.edu/gen1@109 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/ulp/opensm/user/opensm/osm_db_files.c b/trunk/ulp/opensm/user/opensm/osm_db_files.c index 2d964691..0b2c1301 100644 --- a/trunk/ulp/opensm/user/opensm/osm_db_files.c +++ b/trunk/ulp/opensm/user/opensm/osm_db_files.c @@ -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; }