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)
committerZhang Rui <rui.zhang@intel.com>
Sat, 13 Jan 2018 13:19:25 +0000 (21:19 +0800)
commit0be86969ae385c5c944286bd9f66068525de15ee
tree1a9e9093d4d5f4c3cbb3b4e60fb7a5ee40f81a5f
parent261ac1d2d9ef9a29c57f8aff341ae3dc323a707c
thermal: int3400_thermal: fix error handling in int3400_thermal_probe()

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>
drivers/thermal/int340x_thermal/int3400_thermal.c