Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199447
b: refs/heads/master
c: 293a7cf
h: refs/heads/master
i:
  199445: 103e5fe
  199443: aa9f810
  199439: 3ecbae1
v: v3
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed May 31, 2010
1 parent 94f22b6 commit f6b6ea9
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: 67a3e12b05e055c0415c556a315a3d3eb637e29e
refs/heads/master: 293a7cfeedc2b2380a7c7274902323c3cf5f7575
5 changes: 4 additions & 1 deletion trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2014,6 +2014,7 @@ static noinline struct module *load_module(void __user *umod,
long err = 0;
void *ptr = NULL; /* Stops spurious gcc warning */
unsigned long symoffs, stroffs, *strmap;
void __percpu *percpu;

mm_segment_t old_fs;

Expand Down Expand Up @@ -2158,6 +2159,8 @@ static noinline struct module *load_module(void __user *umod,
goto free_mod;
sechdrs[pcpuindex].sh_flags &= ~(unsigned long)SHF_ALLOC;
}
/* Keep this around for failure path. */
percpu = mod_percpu(mod);

/* Determine total sizes, and put offsets in sh_entsize. For now
this is done generically; there doesn't appear to be any
Expand Down Expand Up @@ -2463,7 +2466,7 @@ static noinline struct module *load_module(void __user *umod,
module_free(mod, mod->module_core);
/* mod will be freed with core. Don't access it beyond this line! */
free_percpu:
percpu_modfree(mod);
free_percpu(percpu);
free_mod:
kfree(args);
kfree(strmap);
Expand Down

0 comments on commit f6b6ea9

Please sign in to comment.