Skip to content
Commit ba5e60c9 authored by Peng Hao's avatar Peng Hao Committed by Ludovic Desroches
Browse files

arm/mach-at91/pm : fix possible object reference leak



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: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarPeng Hao <peng.hao2@zte.com.cn>
Signed-off-by: default avatarLudovic Desroches <ludovic.desroches@microchip.com>
parent e7dfb6d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment