Skip to content
Commit 2c677562 authored by Marek Behún's avatar Marek Behún Committed by Pavel Machek
Browse files

leds: various: fix OF node leaks



Fix OF node leaks by calling of_node_put in
for_each_available_child_of_node when the cycle breaks or returns.

Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
Cc: Nikita Travkin <nikitos.tr@gmail.com>
Cc: Milo Kim <milo.kim@ti.com>
Cc: Dan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
Not-for-stable: untested, theoretical, insignificant leaks
parent 99a013c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment