Files
linux/arch/arm/mach-at91/pm.c
Peng Hao 69da58b738 arm/mach-at91/pm : fix possible object reference leak
[ Upstream commit ba5e60c9b7 ]

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>
2019-05-08 07:21:49 +02:00

19 KiB