mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 15:15:28 -04:00
Merge tag 'thermal-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull thermal control fix from Rafael Wysocki: "Fix a memory leak in the int340x thermal driver's ACPI notify handler (Chuansheng Liu)" * tag 'thermal-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: thermal: int340x: fix memory leak in int3400_notify()
This commit is contained in:
@@ -404,6 +404,10 @@ static void int3400_notify(acpi_handle handle,
|
||||
thermal_prop[3] = kasprintf(GFP_KERNEL, "EVENT=%d", therm_event);
|
||||
thermal_prop[4] = NULL;
|
||||
kobject_uevent_env(&priv->thermal->device.kobj, KOBJ_CHANGE, thermal_prop);
|
||||
kfree(thermal_prop[0]);
|
||||
kfree(thermal_prop[1]);
|
||||
kfree(thermal_prop[2]);
|
||||
kfree(thermal_prop[3]);
|
||||
}
|
||||
|
||||
static int int3400_thermal_get_temp(struct thermal_zone_device *thermal,
|
||||
|
||||
Reference in New Issue
Block a user