Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f0fde
)
r=phil
author
nic
<nic>
Fri, 29 Apr 2005 22:00:13 +0000
(22:00 +0000)
committer
nic
<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
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter.c
b/lustre/obdfilter/filter.c
index
1708066
..
093a583
100644
(file)
--- 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);