linux/drivers/net/wireless/broadcom
Javier Carrasco 2e19a3b590 wifi: brcmfmac: release 'root' node in all execution paths
The fixed patch introduced an additional condition to enter the scope
where the 'root' device_node is released (!settings->board_type,
currently 'err'), which avoid decrementing the refcount with a call to
of_node_put() if that second condition is not satisfied.

Move the call to of_node_put() to the point where 'root' is no longer
required to avoid leaking the resource if err is not zero.

Cc: stable@vger.kernel.org
Fixes: 7682de8b33 ("wifi: brcmfmac: of: Fetch Apple properties")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241030-brcmfmac-of-cleanup-v1-1-0b90eefb4279@gmail.com
2024-11-11 14:07:24 +02:00
..
b43 move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
b43legacy move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
brcm80211 wifi: brcmfmac: release 'root' node in all execution paths 2024-11-11 14:07:24 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00