Whamcloud - gitweb
b=21477
authorpanda <panda>
Thu, 3 Dec 2009 16:52:52 +0000 (16:52 +0000)
committerpanda <panda>
Thu, 3 Dec 2009 16:52:52 +0000 (16:52 +0000)
i=Johann Lombardi
i=Dmitry Zogin

check connection for NULL (for the obdecho client)

lustre/obdfilter/filter_io.c

index d579f5f..a42568f 100644 (file)
@@ -656,7 +656,8 @@ static int filter_preprw_write(int cmd, struct obd_export *exp, struct obdo *oa,
         LASSERT(objcount == 1);
         LASSERT(obj->ioo_bufcnt > 0);
 
-        if (exp->exp_connection->c_peer.nid == exp->exp_connection->c_self)
+        if (exp->exp_connection &&
+            exp->exp_connection->c_peer.nid == exp->exp_connection->c_self)
                 localreq = 1;
 
         push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);