Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db6c2c69 authored by Linus Walleij's avatar Linus Walleij
Browse files

pinctrl: fix a memleak when freeing maps



We forgot to free the node itself when free:ing a map.

Reported-by: default avatarxulinuxkernel <xulinuxkernel@gmail.com>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8cb440ab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1193,6 +1193,7 @@ void pinctrl_unregister_map(struct pinctrl_map const *map)
	list_for_each_entry(maps_node, &pinctrl_maps, node) {
		if (maps_node->maps == map) {
			list_del(&maps_node->node);
			kfree(maps_node);
			mutex_unlock(&pinctrl_maps_mutex);
			return;
		}