diff options
| author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-10-30 18:34:45 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:02:49 +0100 |
| commit | 3d6a8b8595dd7c4f56783ef65cb7f13fab6b315f (patch) | |
| tree | 002471089ef9101fd3b00636b06986179a604c66 /kernel/fork.c | |
| parent | 488d2959c28621e52b3cce118a813a4bc18bb3d1 (diff) | |
| download | linux-3d6a8b8595dd7c4f56783ef65cb7f13fab6b315f.tar.gz linux-3d6a8b8595dd7c4f56783ef65cb7f13fab6b315f.tar.bz2 linux-3d6a8b8595dd7c4f56783ef65cb7f13fab6b315f.zip | |
wifi: brcmfmac: release 'root' node in all execution paths
commit 2e19a3b590ebf2e351fc9d0e7c323430e65b6b6d upstream.
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: 7682de8b3351 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions
