From 5f2fbfb713c8edbacefbd42339bc7797fc90d810 Mon Sep 17 00:00:00 2001 From: yury Date: Sat, 13 Oct 2007 09:15:42 +0000 Subject: [PATCH] b=13868 r=adilger,nathan - fixed handling user input in lprocfs_wr_lru_size(). --- lustre/ldlm/ldlm_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ldlm/ldlm_resource.c b/lustre/ldlm/ldlm_resource.c index 922dba0..ec892cf 100644 --- 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; } -- 1.8.3.1