Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252056
b: refs/heads/master
c: a4dbf0e
h: refs/heads/master
v: v3
  • Loading branch information
Yuanhan Liu authored and Linus Torvalds committed May 27, 2011
1 parent 27c2bb1 commit 0cb1e13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e130aa70f438855b4a0e13a5249951da001798d4
refs/heads/master: a4dbf0ec2aa3e8aca6e63f598095750c232d50f1
6 changes: 3 additions & 3 deletions trunk/fs/proc/stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0cb1e13

Please sign in to comment.