Re: [PATCH 3/5] pinctrl: st: fix leaked of_node references

2019-04-23 Thread Linus Walleij
On Fri, Apr 12, 2019 at 8:01 AM Wen Yang wrote: > The call to of_get_child_by_name 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-st.c:1188:3-9:

Re: [PATCH 3/5] pinctrl: st: fix leaked of_node references

2019-04-12 Thread Patrice CHOTARD
Hi Wen On 4/12/19 8:02 AM, Wen Yang wrote: > The call to of_get_child_by_name 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-st.c:1188:3-9:

[PATCH 3/5] pinctrl: st: fix leaked of_node references

2019-04-12 Thread Wen Yang
The call to of_get_child_by_name 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-st.c:1188:3-9: ERROR: missing of_node_put; acquired a node pointer with