Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284416
b: refs/heads/master
c: f1db7af
h: refs/heads/master
v: v3
  • Loading branch information
Kautuk Consul authored and Linus Torvalds committed Jan 13, 2012
1 parent c7a42c4 commit 6b6a9e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 3f79768f239746d19accd88da96263ef35d6a219
refs/heads/master: f1db7afd917e54711798c64d78f8f5fb090f950d
9 changes: 4 additions & 5 deletions trunk/mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,
vms = kzalloc(sizeof(vms[0]) * nr_vms, GFP_KERNEL);
vas = kzalloc(sizeof(vas[0]) * nr_vms, GFP_KERNEL);
if (!vas || !vms)
goto err_free;
goto err_free2;

for (area = 0; area < nr_vms; area++) {
vas[area] = kzalloc(sizeof(struct vmap_area), GFP_KERNEL);
Expand Down Expand Up @@ -2476,11 +2476,10 @@ struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,

err_free:
for (area = 0; area < nr_vms; area++) {
if (vas)
kfree(vas[area]);
if (vms)
kfree(vms[area]);
kfree(vas[area]);
kfree(vms[area]);
}
err_free2:
kfree(vas);
kfree(vms);
return NULL;
Expand Down

0 comments on commit 6b6a9e9

Please sign in to comment.