MIPS: Module: Deal with malformed HI16/LO16 relocation sequences.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 13 Aug 2012 22:34:18 +0000 (00:34 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 17 Aug 2012 08:57:28 +0000 (10:57 +0200)
commitc54de490a2e4e74164f747925ff05c00dfa153cd
tree8a9a2d3717725661a0430966db5bd674db4d4dfb
parent861667dc82f561e65336ea67f73021b782b4ff74
MIPS: Module: Deal with malformed HI16/LO16 relocation sequences.

In case a series of R_MIPS_HI16 relocations was not followed by an
R_MIPS_LO16 relocation we were leaking the hi16 relocation chain.
Handle that error and return an error.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/module.c