Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ab09f
)
b=13868
author
yury
<yury>
Sat, 13 Oct 2007 09:15:42 +0000
(09:15 +0000)
committer
yury
<yury>
Sat, 13 Oct 2007 09:15:42 +0000
(09:15 +0000)
r=adilger,nathan
- fixed handling user input in lprocfs_wr_lru_size().
lustre/ldlm/ldlm_resource.c
patch
|
blob
|
history
diff --git
a/lustre/ldlm/ldlm_resource.c
b/lustre/ldlm/ldlm_resource.c
index
922dba0
..
ec892cf
100644
(file)
--- a/
lustre/ldlm/ldlm_resource.c
+++ b/
lustre/ldlm/ldlm_resource.c
@@
-168,7
+168,7
@@
static int lprocfs_wr_lru_size(struct file *file, const char *buffer,
}
tmp = simple_strtoul(dummy, &end, 0);
- if (
*
end) {
+ if (
dummy ==
end) {
CERROR("invalid value written\n");
return -EINVAL;
}