summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/mediatek/mtk_dsi.c
diff options
context:
space:
mode:
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>2024-12-11 12:28:12 +0900
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-12-16 21:22:22 +0100
commitc759bc8e9046f9812238f506d70f07d3ea4206d4 (patch)
tree0262f2e3aea8de2a225e8a5fdd4e2a4f112fd17b /drivers/gpu/drm/mediatek/mtk_dsi.c
parent78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8 (diff)
ACPI: fan: cleanup resources in the error path of .probe()
Call thermal_cooling_device_unregister() and sysfs_remove_link() in the error path of acpi_fan_probe() to fix possible memory leak. This bug was found by an experimental static analysis tool that I am developing. Fixes: 05a83d972293 ("ACPI: register ACPI Fan as generic thermal cooling device") Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> Link: https://patch.msgid.link/20241211032812.210164-1-joe@pf.is.s.u-tokyo.ac.jp Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_dsi.c')
0 files changed, 0 insertions, 0 deletions