Files
android_kernel_xiaomi_sm8450/arch/mips/kernel
Christophe JAILLET bef8e2dfce MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()'
Pointer on the memory allocated by 'alloc_progmem()' is stored in
'v->load_addr'. So this is this memory that should be freed by
'release_progmem()'.

'release_progmem()' is only a call to 'kfree()'.

With the current code, there is both a double free and a memory leak.
Fix it by passing the correct pointer to 'release_progmem()'.

Fixes: e01402b115 ("More AP / SP bits for the 34K, the Malta bits and things. Still wants")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: ralf@linux-mips.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org
2020-02-15 12:44:03 -08:00
..
2020-01-22 15:56:08 -08:00
2018-10-31 08:54:16 -07:00
2019-12-08 14:37:34 +01:00
2013-02-01 10:00:22 +01:00
2019-08-26 11:42:40 +01:00
2018-08-31 11:49:20 -07:00
2019-11-11 10:44:52 -08:00
2019-07-25 21:45:05 -07:00
2014-05-24 00:07:01 +02:00
2018-12-03 13:42:38 -08:00