Commit 6d03ca09 authored by Liang He's avatar Liang He Committed by Treehugger Robot
Browse files

UPSTREAM: of: device: Fix missing of_node_put() in of_dma_set_restricted_buffer



We should use of_node_put() for the reference 'node' returned by
of_parse_phandle() which will increase the refcount.

Bug: 254441685
Fixes: fec9b625 ("of: Add plumbing for restricted DMA pool")
Co-authored-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220702014449.263772-1-windhl@126.com


(cherry picked from commit d17e37c4)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ib56e5a7b71e8785b5d8e7947cdbee7be501cfd21
parent ee3bce35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment