commit | 69da58b7386cb205856c1304f390a2baba3986f6 | [log] [tgz] |
---|---|---|
author | Peng Hao <peng.hao2@zte.com.cn> | Tue Apr 02 22:12:38 2019 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed May 08 07:21:49 2019 +0200 |
tree | dfd3101ce719b96f50014de93e1358e6ad6e751b | |
parent | 8052c066e6d0d269644630458f7553750adf352e [diff] |
arm/mach-at91/pm : fix possible object reference leak [ Upstream commit ba5e60c9b75dec92d4c695b928f69300b17d7686 ] of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Signed-off-by: Peng Hao <peng.hao2@zte.com.cn> Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com> Signed-off-by: Sasha Levin <sashal@kernel.org>