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-14781 osp: osp object header could be NULL
[fs/lustre-release.git]
/
lustre
/
osp
/
osp_object.c
diff --git
a/lustre/osp/osp_object.c
b/lustre/osp/osp_object.c
index
5fb55bf
..
8126eb0
100644
(file)
--- a/
lustre/osp/osp_object.c
+++ b/
lustre/osp/osp_object.c
@@
-2349,7
+2349,8
@@
static void osp_object_free(const struct lu_env *env, struct lu_object *o)
int count;
dt_object_fini(&obj->opo_obj);
- lu_object_header_fini(h);
+ if (h)
+ lu_object_header_fini(h);
list_for_each_entry_safe(oxe, tmp, &obj->opo_xattr_list, oxe_list) {
list_del_init(&oxe->oxe_list);
count = atomic_read(&oxe->oxe_ref);