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-2217 build: fix 'NULL pointer dereference' errors
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_handler.c
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
9108cfb
..
0fc4a34
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-428,7
+428,7
@@
void mdt_pack_attr2body(struct mdt_thread_info *info, struct mdt_body *b,
if (info)
mdt_body_reverse_idmap(info, b);
-
if (b->valid & OBD_MD_FLSIZE
)
+
if (fid != NULL && (b->valid & OBD_MD_FLSIZE)
)
CDEBUG(D_VFSTRACE, DFID": returning size %llu\n",
PFID(fid), (unsigned long long)b->size);
}