From e601248bdc52cd33de47761e4077aff38861832c Mon Sep 17 00:00:00 2001 From: Yoichi Umezawa Date: Mon, 8 Feb 2016 09:38:27 +0900 Subject: [PATCH] procfs: fix mcos%d/PID/auxv size --- kernel/procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/procfs.c b/kernel/procfs.c index 3ba78b5f..4cc6b2da 100644 --- a/kernel/procfs.c +++ b/kernel/procfs.c @@ -620,7 +620,7 @@ void process_procfs_request(unsigned long rarg) * mcos%d/PID/auxv */ if (strcmp(p, "auxv") == 0) { - unsigned int limit = AUXV_LEN * sizeof(int); + unsigned int limit = AUXV_LEN * sizeof(unsigned long); unsigned int len = r->count; if (r->offset < limit) { if (limit < r->offset + r->count) {