linux_dsm_epyc7002/drivers/of
Evan Nimmo a5bea04fcc of/address: Fix of_node memory leak in of_dma_is_coherent
Commit dabf6b36b8 ("of: Add OF_DMA_DEFAULT_COHERENT & select it on
powerpc") added a check to of_dma_is_coherent which returns early
if OF_DMA_DEFAULT_COHERENT is enabled. This results in the of_node_put()
being skipped causing a memory leak. Moved the of_node_get() below this
check so we now we only get the node if OF_DMA_DEFAULT_COHERENT is not
enabled.

Fixes: dabf6b36b8 ("of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc")
Signed-off-by: Evan Nimmo <evan.nimmo@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20201110022825.30895-1-evan.nimmo@alliedtelesis.co.nz
Signed-off-by: Rob Herring <robh@kernel.org>
2020-11-11 17:10:16 -06:00
..
unittest-data
address.c of/address: Fix of_node memory leak in of_dma_is_coherent 2020-11-11 17:10:16 -06:00
base.c
device.c of: Drop superfluous ULL suffix for ~0 2020-11-02 09:32:46 -08:00
dynamic.c
fdt_address.c
fdt.c
irq.c
Kconfig
kobj.c
Makefile
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c of: Fix reserved-memory overlap detection 2020-10-25 20:37:55 -05:00
overlay.c
pdt.c
platform.c
property.c
resolver.c
unittest.c