Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-9359 pfl: instantiate enough component at mdd_create_data
[fs/lustre-release.git]
/
lustre
/
lov
/
lov_io.c
diff --git
a/lustre/lov/lov_io.c
b/lustre/lov/lov_io.c
index
d1370b9
..
73c16e2
100644
(file)
--- a/
lustre/lov/lov_io.c
+++ b/
lustre/lov/lov_io.c
@@
-102,7
+102,8
@@
static int lov_io_sub_init(const struct lu_env *env, struct lov_io *lio,
LASSERT(sub->sub_env == NULL);
ENTRY;
- if (unlikely(lov_r0(lov, index)->lo_sub[stripe] == NULL))
+ if (unlikely(!lov_r0(lov, index)->lo_sub ||
+ !lov_r0(lov, index)->lo_sub[stripe]))
RETURN(-EIO);
/* obtain new environment */