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-3642 seq: make seq_proc_write_common() safer
[fs/lustre-release.git]
/
lustre
/
include
/
lustre
/
lustre_idl.h
diff --git
a/lustre/include/lustre/lustre_idl.h
b/lustre/include/lustre/lustre_idl.h
index
45fe409
..
9271c00
100644
(file)
--- a/
lustre/include/lustre/lustre_idl.h
+++ b/
lustre/include/lustre/lustre_idl.h
@@
-264,7
+264,7
@@
static inline __u64 range_space(const struct lu_seq_range *range)
static inline void range_init(struct lu_seq_range *range)
{
-
range->lsr_start = range->lsr_end = range->lsr_index = 0
;
+
memset(range, 0, sizeof(*range))
;
}
/**