]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: nomadik: fix possible object reference leak
authorWangBo <wdjjwb@163.com>
Fri, 15 Feb 2019 08:01:36 +0000 (16:01 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 20 Feb 2019 09:52:34 +0000 (10:52 +0100)
commit8be9ddf78a8b151eaa322896a2707b1bbdf8c14e
tree31a6f3156ceab4e7a8d222cf8d91258b730e484b
parent173698bdcbd63ee4d0dd5e98e192df4e089ea81e
pinctrl: nomadik: fix possible object reference leak

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 <wang.bo116@zte.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nomadik/pinctrl-nomadik.c