thermal: int3400_thermal: fix error handling in int3400_thermal_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 29 Dec 2017 22:05:21 +0000 (01:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Apr 2018 10:32:21 +0000 (12:32 +0200)
commit5dff63583f0d86f2923a871d77c71703845d2b1d
treecc9d5100c8f41c6f69c01eeedbb876aa89b4832c
parentbc166ca4234c241ae28b13bac8583d04bcdf9a9e
thermal: int3400_thermal: fix error handling in int3400_thermal_probe()

[ Upstream commit 0be86969ae385c5c944286bd9f66068525de15ee ]

There are resources that are not dealocated on failure path
in int3400_thermal_probe().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thermal/int340x_thermal/int3400_thermal.c