android_kernel_samsung_a7y1.../arch/mips
Christophe JAILLET 84eebc6d91 MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()'
commit bef8e2dfceed6daeb6ca3e8d33f9c9d43b926580 upstream.

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: e01402b115ccc ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:04:51 +02:00
..
alchemy A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ar7 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ath25 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ath79 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bcm47xx MIPS: BCM47XX: Enable USB power on Netgear WNDR3400v3 2020-04-07 12:26:48 +02:00
bcm63xx MIPS: BCM63XX: fix switch core reset on BCM6368 2020-04-07 11:59:41 +02:00
bmips A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
boot MIPS: fix build on non-linux hosts 2020-04-06 19:53:59 +02:00
cavium-octeon MIPS: OCTEON: cvmx_pko_mem_debug8: use oldest forward compatible definition 2020-04-07 12:45:27 +02:00
cobalt A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
configs USB: rio500: Remove Rio 500 kernel driver 2020-04-07 08:08:28 +02:00
dec A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
emma A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fw MIPS: fw: sni: Fix out of bounds init of o32 stack 2020-04-07 09:27:50 +02:00
generic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
include mips: avoid explicit UB in assignment of mips_io_port_base 2020-04-07 13:43:00 +02:00
jazz A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jz4740 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kernel MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()' 2020-04-07 14:04:51 +02:00
kvm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lantiq MIPS: lantiq: Fix bitfield masking 2020-04-06 20:26:48 +02:00
lasat A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lib A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
loongson32 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
loongson64 MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() 2020-04-07 13:55:46 +02:00
math-emu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mti-malta A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mti-sead3 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
net A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
netlogic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
oprofile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
paravirt A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pistachio MIPS: pistachio: Build uImage.gz by default 2020-04-06 18:45:16 +02:00
pmcs-msp71xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pnx833x A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
power A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ralink A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rb532 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgi-ip22 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgi-ip27 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgi-ip32 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sibyte Revert "MIPS: SiByte: Enable swiotlb for SWARM, LittleSur and BigSur" 2020-04-06 21:35:31 +02:00
sni A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
txx9 mips: txx9: fix iounmap related issue 2020-04-07 12:27:07 +02:00
vdso MIPS: VDSO: Use same -m%-float cflag as the kernel proper 2020-04-06 21:35:45 +02:00
vr41xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xilfpga A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kbuild A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kbuild.platforms A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig MIPS: SiByte: Enable ZONE_DMA32 for LittleSur 2020-04-07 12:44:27 +02:00
Kconfig.debug A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30