From: Rusty Russell Date: Fri, 25 Sep 2009 06:32:59 +0000 (-0600) Subject: module: don't call percpu_modfree on NULL pointer. X-Git-Tag: v2.6.32-rc1~56^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffa9f12a41ec117207e8d953f90b9c179546c8d7;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell Cc: Eric Dumazet Cc: Masami Hiramatsu Cc: Américo Wang Tested-by: Kamalesh Babulal --- Reading git-diff-tree failed