Skip to content
Commit 038ae37c authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Krzysztof Kozlowski
Browse files

memory: mtk-smi: add missing put_device() call in mtk_smi_device_link_common



The reference taken by 'of_find_device_by_node()' must be released when
not needed anymore.
Add the corresponding 'put_device()' in the error handling paths.

Fixes: 47404757 ("memory: mtk-smi: Add device link for smi-sub-common")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220601120118.60225-1-linmq006@gmail.com


Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 67c7fc6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment