From 42cfe629c89fc4a39c312663a1c8bbb59a04855a Mon Sep 17 00:00:00 2001 From: nic Date: Fri, 29 Apr 2005 22:00:13 +0000 Subject: [PATCH] r=phil only set data elements with a non-NULL data. this fixes echo_client connects --- lustre/obdfilter/filter.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 1708066..093a583 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -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); -- 1.8.3.1