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-14389 lov: avoid NULL dereference in cleanup
[fs/lustre-release.git]
/
lustre
/
lov
/
lov_object.c
diff --git
a/lustre/lov/lov_object.c
b/lustre/lov/lov_object.c
index
cff9c1d
..
da7bfe6
100644
(file)
--- a/
lustre/lov/lov_object.c
+++ b/
lustre/lov/lov_object.c
@@
-861,7
+861,7
@@
static int lov_delete_composite(const struct lu_env *env,
lov_layout_wait(env, lov);
if (comp->lo_entries)
lov_foreach_layout_entry(lov, entry) {
- if (lsme_is_foreign(entry->lle_lsme))
+ if (
entry->lle_lsme &&
lsme_is_foreign(entry->lle_lsme))
continue;
lov_delete_raid0(env, lov, entry);