]> git.baikalelectronics.ru Git - kernel.git/commit
leds: various: fix OF node leaks
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:32:57 +0000 (00:32 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:39 +0000 (21:56 +0200)
commit9294c7cdc90c707e682f386c6a52a0f2b749852f
tree6c2344683d2a4d93ed9c9d8fee7708858a2a6f4b
parent16a746ca0d037194765cf6cdc77a05f6445d386b
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: Marek 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: Pavel Machek <pavel@ucw.cz>
Not-for-stable: untested, theoretical, insignificant leaks
drivers/leds/leds-aw2013.c
drivers/leds/leds-lp55xx-common.c
drivers/leds/leds-turris-omnia.c