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;