Paul Burton 351b0940d4 MIPS: module: Ensure we always clean up r_mips_hi16_list
If we hit an error whilst processing a reloc then we would return early
from apply_relocate & potentially not free entries in r_mips_hi16_list,
thereby leaking memory. Fix this by ensuring that we always run the code
to free r_mipps_hi16_list when errors occur.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Fixes: 861667dc82f5 ("MIPS: Fix race condition in module relocation code.")
Fixes: 04211a574641 ("MIPS: Bail on unsupported module relocs")
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15831/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-06-28 12:22:38 +02:00
..
2017-02-13 18:57:34 +00:00
2017-01-03 16:34:34 +01:00
2017-01-25 02:51:11 +01:00
2014-05-24 00:07:01 +02:00
2016-12-25 10:47:44 +01:00
2016-05-09 12:00:02 +02:00
2017-03-08 12:11:13 +01:00
2017-03-08 12:11:13 +01:00
2017-03-08 12:11:13 +01:00
2017-03-08 12:11:13 +01:00
2017-03-08 10:38:06 +01:00
2017-04-06 02:08:06 -04:00
2017-03-28 14:53:54 +01:00
2017-03-28 16:43:25 -04:00
2014-05-24 00:07:01 +02:00