Whamcloud - gitweb
r=phil
authornic <nic>
Fri, 29 Apr 2005 22:00:13 +0000 (22:00 +0000)
committernic <nic>
Fri, 29 Apr 2005 22:00:13 +0000 (22:00 +0000)
only set data elements with a non-NULL data. this fixes echo_client connects

lustre/obdfilter/filter.c

index 1708066..093a583 100644 (file)
@@ -1450,8 +1450,11 @@ static int filter_connect(struct lustre_handle *conn, struct obd_device *obd,
         LASSERT(exp != NULL);
 
         fed = &exp->exp_filter_data;
-        data->ocd_connect_flags &= OST_CONNECT_SUPPORTED;
-        exp->exp_connect_flags = data->ocd_connect_flags;
+
+        if (data != NULL) {
+                data->ocd_connect_flags &= OST_CONNECT_SUPPORTED;
+                exp->exp_connect_flags = data->ocd_connect_flags;
+        }
 
         spin_lock_init(&fed->fed_lock);