Tag: 458a39523542c4479a69b98743436fb761f03796

[media] media: platform: exynos4-is: media-dev: Add missing of_node_put

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> for_each_available_child_of_node and for_each_child_of_node perform an of_node_get on each iteration, so to break out of the loop an of_node_put is required. Found using Coccinelle. The simplified version of the semantic patch that is used for this is as follows: // @@ local idexpression n; expression e,r; @@ for_each_available_child_of_node(r,n) { … ( …

Continue reading