summaryrefslogtreecommitdiffstats
path: root/kernel/user.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-09-25 08:32:59 +0200
committerRusty Russell <rusty@rustcorp.com.au>2009-09-24 17:02:59 +0200
commitffa9f12a41ec117207e8d953f90b9c179546c8d7 (patch)
treec587166a485b631bc8645caec4eff6f2e9f295fe /kernel/user.c
parentmodule: fix memory leak when load fails after srcversion/version allocated (diff)
downloadlinux-ffa9f12a41ec117207e8d953f90b9c179546c8d7.tar.xz
linux-ffa9f12a41ec117207e8d953f90b9c179546c8d7.zip
module: don't call percpu_modfree on NULL pointer.
The general one handles NULL, the static obsolescent (CONFIG_HAVE_LEGACY_PER_CPU_AREA) one in module.c doesn't; Eric's commit 720eba31 assumed it did, and various frobbings since then kept that assumption. All other callers in module.c all protect it with an if; this effectively does the same as free_init is only goto if we fail percpu_modalloc(). Reported-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Eric Dumazet <dada1@cosmosbay.com> Cc: Masami Hiramatsu <mhiramat@redhat.com> Cc: Américo Wang <xiyou.wangcong@gmail.com> Tested-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/user.c')
0 files changed, 0 insertions, 0 deletions