Skip to content
Snippets Groups Projects
Commit a7c855b5 authored by Yury Umanets's avatar Yury Umanets
Browse files

b=13868

r=adilger,nathan
- fixed handling user input in lprocfs_wr_lru_size().
parent fb3bb7d7
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment