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-17250 mgs: generate a new MDT configuration by copy
[fs/lustre-release.git]
/
lustre
/
include
/
uapi
/
linux
/
lustre
/
lustre_cfg.h
diff --git
a/lustre/include/uapi/linux/lustre/lustre_cfg.h
b/lustre/include/uapi/linux/lustre/lustre_cfg.h
index
8b59e1e
..
2dcb57a
100644
(file)
--- a/
lustre/include/uapi/linux/lustre/lustre_cfg.h
+++ b/
lustre/include/uapi/linux/lustre/lustre_cfg.h
@@
-265,6
+265,9
@@
static inline void *lustre_cfg_buf(struct lustre_cfg *lcfg, __u32 index)
if (index >= bufcount)
return NULL;
+ if (!lcfg->lcfg_buflens[index])
+ return NULL;
+
offset = LCFG_HDR_SIZE(lcfg->lcfg_bufcount);
for (i = 0; i < index; i++)
offset += __ALIGN_KERNEL(lcfg->lcfg_buflens[i], 8);