From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F80912FF73 for ; Thu, 22 Feb 2024 13:38:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708609111; cv=none; b=QvJofyemFZSZ74vUZpRikDLeoPn1Ezq+Vyl+hV/XJpTG9rhE/d2jsFUPR2cLObQXtSo5C0Z7jI91pZQ2i8gqpuaXeXeuEnm94B6vkEROdedIsjVEmV0iujfBPJnV9pT+vE+NnkN4angCIDN0D8NHNYNrE8hIcSrVU+YiFxpOIqM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708609111; c=relaxed/simple; bh=dnP6Na2KFoHfi/00jkUuH2sx/m/bitJm1og9b7z1FOg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WYtK4hs0iFI2fd043GEZPPhhXObX+m4w7nT7LIJiVOuFCe+cOZCwIzku6Qo8fWq0B9rUE4UIMbEiK2jzh9JFWymS0b/5+IuIOJxzK0KY2owNxij7MVVJ1CzU22Z5H61N/mUk2WjyB89oLoG03QeBf0C5BoEE9g7jz7uT4tWXcw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Wmnz7T4V; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Wmnz7T4V" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-41282f05409so4989195e9.0 for ; Thu, 22 Feb 2024 05:38:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708609108; x=1709213908; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u0eeSj0Rbo8Tyxk9+gjLQ2yol07l3Rs5IcpVi8aXUFs=; b=Wmnz7T4VTWdXNdsRdQiQsuAII/BAIrrgq0uXxoTvioFxQ1mCZ0fDhOdD+0gHBPArHe tncRF9DTSzxJiVgzWoLXyiZyDIOmyPp8EUXmeFF7dAiMdlkAziEc7dXeZGqbe6nStSPY vJqT2bI5l/FmAld0YUUEzyUo2p/30a/Yly0hY3ukr2J1IXoL2vywHEEgS4A4yVLg381d IvWbhiKNI/7MNElA3eEn9P5EZ7HbXoU8ouVO9jUydurw9tukPnhxZYndciUS8GYlNiwI PYmOlQpp/ADsZJcTeLs1NFzmD0xlPMa44nsfmhJutmmhW1u6T0PoBKacHvM8y4gRxhUD pGuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708609108; x=1709213908; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u0eeSj0Rbo8Tyxk9+gjLQ2yol07l3Rs5IcpVi8aXUFs=; b=iJrX4EtH5zx4hj6abR1R9/OHwI1rQeYsP7NZCZAGxDev0rCKy0RfTGq/i8Bka1Ridq PS1r9Ms86pvjD2EeIxBfOpMa3p6FQUE15COzULCegWjH2uu3ms0ExI1Mbs0KK37weInt KQE9hBQB625qeEhVmqa20zSQ3UxiXzppS7t5wKyX9XUDES6ecAHBQDW8NxfgPt6WbKK3 N1byupPKRKG+kZQ91KM+TyG3xiDwrhQrJtdsTqSJZdb7gP6b01Y9YI1k3I/rDBlg1b2f HusJOT3VYkOo+2U1pUTSFCyoEYKwwX0TAZ3QrhnE4XV6x1bmPmYHUnutGWBgpviUi2PQ iUVw== X-Forwarded-Encrypted: i=1; AJvYcCVE+AZ7rIcj9zldplppMOaqR4xuR+ZatYIsUE5Kxc5R9vqTUYsYkkYXed/Tf2BtqisJ8VYKqnrICzK2qi3G8MHxPkPbFNVNHO8= X-Gm-Message-State: AOJu0Ywkk+Ed/6SUec/PIlR+gNVEoAUSU95CoSnc7AAJSaiENKUHkjTs mzvzn6/6wC9Nok6iUpUG14GvzowwOAN75HeoGJrrhULVJ4GAig8P47oSAJnpYFQ= X-Google-Smtp-Source: AGHT+IG891wIGj3n6n+q1STkih4LzXtpjLUJ07Dpm8f6+K69gfvd5F6o5ICUx3SMCN+wGTidEMMoCg== X-Received: by 2002:a05:600c:a03:b0:410:deab:96bf with SMTP id z3-20020a05600c0a0300b00410deab96bfmr15301794wmp.22.1708609107670; Thu, 22 Feb 2024 05:38:27 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id 11-20020a05600c228b00b0041288122af0sm95586wmf.0.2024.02.22.05.38.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Feb 2024 05:38:27 -0800 (PST) Message-ID: <0de4fb24-8e33-4c2b-b6a6-d9e8a7b358bd@linaro.org> Date: Thu, 22 Feb 2024 14:38:26 +0100 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2.1 1/6] thermal: core: Store zone trips table in struct thermal_zone_device Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Linux ACPI , Lukasz Luba , Zhang Rui , Srinivas Pandruvada , Stanislaw Gruszka , AngeloGioacchino Del Regno , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team References: <4551531.LvFx2qVVIh@kreacher> <1883976.tdWV9SEqCh@kreacher> <12405371.O9o76ZdvQC@kreacher> From: Daniel Lezcano In-Reply-To: <12405371.O9o76ZdvQC@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 22/02/2024 14:10, Rafael J. Wysocki wrote: [ ... ] > Index: linux-pm/drivers/thermal/thermal_of.c > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_of.c > +++ linux-pm/drivers/thermal/thermal_of.c > @@ -440,12 +440,10 @@ static int thermal_of_unbind(struct ther > */ > static void thermal_of_zone_unregister(struct thermal_zone_device *tz) > { > - struct thermal_trip *trips = tz->trips; > struct thermal_zone_device_ops *ops = tz->ops; > > thermal_zone_device_disable(tz); > thermal_zone_device_unregister(tz); > - kfree(trips); thermal_of_zone_register() must free the allocated trip points after registering the thermal zone. > kfree(ops); > } -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog