From: Ralf Baechle Date: Wed, 8 Aug 2012 14:59:43 +0000 (+0200) Subject: MIPS: Fix race condition in module relocation code. X-Git-Tag: v3.6-rc4~16^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=861667dc82f561e65336ea67f73021b782b4ff74;p=pandora-kernel.git MIPS: Fix race condition in module relocation code. The relocation code was essentially taken from the 2.4 modutils which perform relocation in userspace. In 2.6 relocation of multiple modules may be performed in parallel by the in-kernel loader so the global variable mips_hi16_list won't fly anymore. Fix race by moving it into mod_arch_specific. [ralf@linux-mips.org: folded in Tony's followup fix. Thanks Tony!] Signed-off-by: Ralf Baechle Signed-off-by: Tony Wu Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/4189/ --- Reading git-diff-tree failed