Skip to content
Commit a245b62b authored by Peng Hao's avatar Peng Hao Committed by Eduardo Valentin
Browse files

thermal/qcom/tsens-common : 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.
We also should make sure to drop the reference to the device
taken by of_find_device_by_node() when returning error.

Signed-off-by: default avatarPeng Hao <peng.hao2@zte.com.cn>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 76b1ae86
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