Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207277
b: refs/heads/master
c: 51980ac
h: refs/heads/master
i:
  207275: fe83c7e
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Linus Torvalds committed Aug 10, 2010
1 parent 902c7f2 commit f687e69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: cc8e970c3ce4d98afa8eb02dbd2526ce57f7611a
refs/heads/master: 51980ac9e72fb5f22c81b7798d65b691125d70ee
5 changes: 4 additions & 1 deletion trunk/mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2437,8 +2437,11 @@ static int vmalloc_open(struct inode *inode, struct file *file)
unsigned int *ptr = NULL;
int ret;

if (NUMA_BUILD)
if (NUMA_BUILD) {
ptr = kmalloc(nr_node_ids * sizeof(unsigned int), GFP_KERNEL);
if (ptr == NULL)
return -ENOMEM;
}
ret = seq_open(file, &vmalloc_op);
if (!ret) {
struct seq_file *m = file->private_data;
Expand Down

0 comments on commit f687e69

Please sign in to comment.