diff options
author | Evan Nimmo <[email protected]> | 2020-11-10 15:28:25 +1300 |
---|---|---|
committer | Rob Herring <[email protected]> | 2020-11-11 17:10:16 -0600 |
commit | a5bea04fcc0b3c0aec71ee1fd58fd4ff7ee36177 (patch) | |
tree | e20c708b57cd091758afcc458ce2fcca0b69e581 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f8394f232b1eab649ce2df5c5f15b0e528c92091 (diff) |
of/address: Fix of_node memory leak in of_dma_is_coherent
Commit dabf6b36b83a ("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: dabf6b36b83a ("of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc")
Signed-off-by: Evan Nimmo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions