Re: [PATCH v2] Bluetooth: btbcm: fix missing of_node_put() in btbcm_get_board_name()
From: patchwork-bot+bluetooth
Date: Thu Oct 31 2024 - 12:30:46 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Thu, 31 Oct 2024 13:11:23 +0100 you wrote:
> of_find_node_by_path() returns a pointer to a device_node with its
> refcount incremented, and a call to of_node_put() is required to
> decrement the refcount again and avoid leaking the resource.
>
> If 'of_property_read_string_index(root, "compatible", 0, &tmp)' fails,
> the function returns without calling of_node_put(root) before doing so.
>
> [...]
Here is the summary with links:
- [v2] Bluetooth: btbcm: fix missing of_node_put() in btbcm_get_board_name()
https://git.kernel.org/bluetooth/bluetooth-next/c/6ef8bb9d0bd6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html