Skip to content

Commit

Permalink
leds: max77693: Add missing of_node_put
Browse files Browse the repository at this point in the history
Each break out of the for_each_available_child_of_node loop requires
of_node_put().

This patch adds missing of_node_put() when loop breaks on conflicting
values of led-sources DT property.

Signed-off-by: Jacek Anaszewski <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sakari Ailus <[email protected]>
  • Loading branch information
janaszewski committed Jan 4, 2016
1 parent 0c24199 commit 8891161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/leds/leds-max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ static int max77693_led_parse_dt(struct max77693_led_device *led,
if (sub_nodes[fled_id]) {
dev_err(dev,
"Conflicting \"led-sources\" DT properties\n");
of_node_put(child_node);
return -EINVAL;
}

Expand Down

0 comments on commit 8891161

Please sign in to comment.