summaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2013-01-10 19:14:17 +0000
committerPekka Enberg <penberg@kernel.org>2013-02-01 12:32:08 +0200
commit9e5e8deca74603357626471a9b44f05dea9e32b1 (patch)
treeed350a277672ec5399bb69bcd60016ff265c1340 /fs/proc
parentf97d5f634d3b5133951424fae751db1f339548bd (diff)
downloadop-kernel-dev-9e5e8deca74603357626471a9b44f05dea9e32b1.zip
op-kernel-dev-9e5e8deca74603357626471a9b44f05dea9e32b1.tar.gz
stat: Use size_t for sizes instead of unsigned
On some platforms (such as IA64) the large page size may results in slab allocations to be allowed of numbers that do not fit in 32 bit. Acked-by: Glauber Costa <glommer@parallels.com> Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/stat.c b/fs/proc/stat.c
index e296572..1cf86c0 100644
--- a/fs/proc/stat.c
+++ b/fs/proc/stat.c
@@ -184,7 +184,7 @@ static int show_stat(struct seq_file *p, void *v)
static int stat_open(struct inode *inode, struct file *file)
{
- unsigned size = 1024 + 128 * num_possible_cpus();
+ size_t size = 1024 + 128 * num_possible_cpus();
char *buf;
struct seq_file *m;
int res;
OpenPOWER on IntegriCloud