From 0cb1e1342195575281c09241ef88e7764cac0283 Mon Sep 17 00:00:00 2001 From: Yuanhan Liu Date: Thu, 26 May 2011 16:25:51 -0700 Subject: [PATCH] --- yaml --- r: 252056 b: refs/heads/master c: a4dbf0ec2aa3e8aca6e63f598095750c232d50f1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/proc/stat.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 9aa9db94cce5..1e26e10fc445 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e130aa70f438855b4a0e13a5249951da001798d4 +refs/heads/master: a4dbf0ec2aa3e8aca6e63f598095750c232d50f1 diff --git a/trunk/fs/proc/stat.c b/trunk/fs/proc/stat.c index 1cffa2b8a2fc..9758b654a1bc 100644 --- a/trunk/fs/proc/stat.c +++ b/trunk/fs/proc/stat.c @@ -138,9 +138,9 @@ static int stat_open(struct inode *inode, struct file *file) struct seq_file *m; int res; - /* don't ask for more than the kmalloc() max size, currently 128 KB */ - if (size > 128 * 1024) - size = 128 * 1024; + /* don't ask for more than the kmalloc() max size */ + if (size > KMALLOC_MAX_SIZE) + size = KMALLOC_MAX_SIZE; buf = kmalloc(size, GFP_KERNEL); if (!buf) return -ENOMEM;