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
ar7
ath25
ath79
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
boot
cavium-octeon MIPS: OCTEON: cvmx_pko_mem_debug8: use oldest forward compatible definition 2020-04-07 12:45:27 +02:00
cobalt
configs USB: rio500: Remove Rio 500 kernel driver 2020-04-07 08:08:28 +02:00
dec
emma
fw MIPS: fw: sni: Fix out of bounds init of o32 stack 2020-04-07 09:27:50 +02:00
generic
include mips: avoid explicit UB in assignment of mips_io_port_base 2020-04-07 13:43:00 +02:00
jazz
jz4740
kernel MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()' 2020-04-07 14:04:51 +02:00
kvm
lantiq MIPS: lantiq: Fix bitfield masking 2020-04-06 20:26:48 +02:00
lasat
lib
loongson32
loongson64 MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() 2020-04-07 13:55:46 +02:00
math-emu
mm
mti-malta
mti-sead3
net
netlogic
oprofile
paravirt
pci
pistachio
pmcs-msp71xx
pnx833x
power
ralink
rb532
sgi-ip22
sgi-ip27
sgi-ip32
sibyte Revert "MIPS: SiByte: Enable swiotlb for SWARM, LittleSur and BigSur" 2020-04-06 21:35:31 +02:00
sni
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
xilfpga
Kbuild
Kbuild.platforms
Kconfig MIPS: SiByte: Enable ZONE_DMA32 for LittleSur 2020-04-07 12:44:27 +02:00
Kconfig.debug
Makefile