Skip to content
Commit 108f4664 authored by Tobias Jordan's avatar Tobias Jordan Committed by Pavel Machek
Browse files

leds: tlc591xx: fix leak of device node iterator



In one of the error paths of the for_each_child_of_node loop in
tlc591xx_probe, add missing call to of_node_put.

Fixes: 1ab4531a ("leds: tlc591xx: simplify driver by using the managed led API")

Signed-off-by: default avatarTobias Jordan <kernel@cdqe.de>
Reviewed-by: default avatarMarek Behún <kabel@kernel.org>
Reviewed-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 564ead12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment