Re: [PATCH v2] pinctrl: rockchip: fix leaked of_node references

2019-05-16 Thread Linus Walleij
On Mon, Apr 15, 2019 at 8:23 AM Wen Yang wrote: > The call to of_parse_phandle returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: > ./drivers/pinctrl/pinctrl-rockchip.c:3221:2-8:

[PATCH v2] pinctrl: rockchip: fix leaked of_node references

2019-04-14 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/pinctrl/pinctrl-rockchip.c:3221:2-8: ERROR: missing of_node_put; acquired a node pointer with re