]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 12 Apr 2018 13:06:41 +0000 (10:06 -0300)
commitd6884ca25082a759e0b90ca817d03104d7d93bb2
treed86e0d05f554c1d09dfbf941dd6b6e94633b0931
parent6bc46be42b02800c18c88dd3f4ba23d7100d8779
thermal: int3400_thermal: fix error handling in int3400_thermal_probe()

BugLink: http://bugs.launchpad.net/bugs/1763366
[ 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>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/thermal/int340x_thermal/int3400_thermal.c