]> git.itanic.dy.fi Git - linux-stable/commit
thermal/debugfs: Unlock on error path in thermal_debug_tz_trip_up()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 12 Jan 2024 14:30:18 +0000 (17:30 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Jan 2024 14:53:54 +0000 (15:53 +0100)
commit6dcb35088e264306b948141971286257681ca412
treee550b1828d918472838f52b9e3b2e30dee167c7f
parente95fa7404716f6e25021e66067271a4ad8eb1486
thermal/debugfs: Unlock on error path in thermal_debug_tz_trip_up()

Add a missing mutex_unlock(&thermal_dbg->lock) to this error path.

Fixes: 7ef01f228c9f ("thermal/debugfs: Add thermal debugfs information for mitigation episodes")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_debugfs.c