Re: [PATCH] pinctrl: nomadik: fix possible object reference leak

2019-02-20 Thread Linus Walleij
On Fri, Feb 15, 2019 at 9:01 AM WangBo wrote: > The of_find_device_by_node takes a reference to the struct device > when find the match device ,we should release it when fail. > > Signed-off-by: WangBo Patch applied! Yours, Linus Walleij

[PATCH] pinctrl: nomadik: fix possible object reference leak

2019-02-15 Thread WangBo
The of_find_device_by_node takes a reference to the struct device when find the match device ,we should release it when fail. Signed-off-by: WangBo --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl