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-14740 llite: avoid project quota overflow
[fs/lustre-release.git]
/
lustre
/
utils
/
lfs.c
diff --git
a/lustre/utils/lfs.c
b/lustre/utils/lfs.c
index
fd9f0c7
..
c124188
100644
(file)
--- a/
lustre/utils/lfs.c
+++ b/
lustre/utils/lfs.c
@@
-4577,6
+4577,7
@@
static int str2quotaid(__u32 *id, const char *arg)
projid_tmp = strtoul(arg, &endptr, 10);
if (*endptr != '\0')
return -EINVAL;
+ /* UINT32_MAX is not allowed - see projid_valid()/INVALID_PROJID */
if (projid_tmp >= UINT32_MAX)
return -ERANGE;