Tag: 081976bcc0cbc84f5164fb7aa0e5cf597df6de9e

mtd: brcmnand: improve memory management

Author: Julia Lawall <julia.lawall@lip6.fr> This patch addresses two related memory management issues in the probe function: 1. for_each_available_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression …

Continue reading