MIPS: Fix memory leak in error path of HI16/LO16 relocation handling.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 8 Aug 2012 12:57:03 +0000 (14:57 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 17 Aug 2012 08:57:27 +0000 (10:57 +0200)
commitd3cac35cd0a2a987f7559e1829fb0253cea33872
treeae27d06c44b3d36c7cb4b1b5373c569ef535369f
parent143ec74eb10ac9a8c4357341a03b07ac4f04a761
MIPS: Fix memory leak in error path of HI16/LO16 relocation handling.

Commit 6f5d2e970452b5c86906adcb8e7ad246f535ba39 (lmo) /
477c4b07406357ad93d0e32788dbf3ee814eadaa (kernel.org) [[MIPS: VPE: Free
relocation chain on error.] fixed the same issue in the vpe loader in 2009
but back then the same bug in module.c went unfixed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: Akhilesh Kumar <akhilesh.lxr@gmail.com>
arch/mips/kernel/module.c