From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 A53665FEED for ; Thu, 24 Oct 2024 16:54:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729788871; cv=none; b=Q3krLLUDjMCbjKn0YId0Pskk1y65RfjJ7TjfGfDFzJuJS/W5qO3qK+92VpTK8NcW0bNwloKfIAkerti5mAnrpRApkQYArmxcYdUGqaJIxUGx20phtktBTASgeAr3Ml5kAOSjptsyXypWNMBoirOXG6vKtWvIMvyw+uWP0AfM0/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729788871; c=relaxed/simple; bh=aLx7QG6uY3rZrJhStO1VgJs4ypcvdpgfHRjqSN9+C3M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Et6cIMvuURylftn7gC6zEhU+oq/HT2CqpDBmXVH0Wx6o5GDYjZ0s1T5rMlH/9qSaVWYgFUHzHV00XlN6TD0k3j0NQAErWFZfuYUjmVy1ynChTkB88ZVBDF0KvmDaxtdH5FsZXaZFSO4TkcAMpojX8zmVJ3XBQ9Ers5+AdhEGRjM= 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=JG7Fb6Zd; arc=none smtp.client-ip=209.85.128.46 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="JG7Fb6Zd" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-43155abaf0bso12047505e9.0 for ; Thu, 24 Oct 2024 09:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729788868; x=1730393668; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Eg+iruVMbHZEdj0Scj2SHzkcTg3IW3N7WkF7hnD85K0=; b=JG7Fb6ZdW3t2o0DTq6j5vgS8JeABPw2phTlUzYYJ4Hzfon/OQw8Z8RP/Bnx+5vtC2m ch2eYPJkIpKPdK+ZhYqSfhbUy+c4GFIYs0hge42s2M5CcaNlWw1qY8VUe5Hpb1mPrCpI UecdfTTAeu0KO63gaVUXOm96i8b4hfGyYqGsvMbuscPanghHbbwZYwQwALvZ8jI/k9Ml 894e/BnUvjFlF6/zXGI1z9ZBq5skZQfdgMH8Hsxvk1sXUlgF7BCH64bINUwsGAhIj78x MfK7315gR8hAASr4XifElEkjq7PB8edQ7fzyqrPLuXPGtsjLmPEeEZsU5XrMzEnzggeA 4q5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729788868; x=1730393668; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Eg+iruVMbHZEdj0Scj2SHzkcTg3IW3N7WkF7hnD85K0=; b=bn3dI/oo4tsPERw+3a68+eLvKk4Q2u7U+4ctUSEVEmYukrCdeDUVV7WOyEOHShUrET ES8gH6rI+wGeu6Hstz60v/cU8vHHUCYTkhFZLC7Oh1Fczgl6Ye/THyexTCxz9PfbPJev XaZVDAB0SkxLf2zwVFyhO9P4V+BnpsIFQR2LAmn+wUSBu/EDKFBvIQ3UndMw5rDLf7DA gdCA560hruH8Lq4L9XT6ZS9uqO3+0aotyJMDnnP2GrJcFzsbk5elX/+pOpSaN8N6d1T4 A5OQv7Ngk9HkpeowMj+ohvhJckGCk9d+qCUg7VNmpWOPSBPrSib+3WXG1o3YprX1e5DK kRbQ== X-Forwarded-Encrypted: i=1; AJvYcCXEQ72n9tdQXKC2cSXWQe+bDsI0yFD0nHDwLYDhx8lfVSvd/Bo6pBrmCYhgbffsWVvhIwFZE0hQBw==@vger.kernel.org X-Gm-Message-State: AOJu0YyoMYeBg+0ep85DJyq9KLG1oZD+FmRC5N3ZQZEjt503Mzvvy8iB RwH467t8CY9u732vyZHF+6sYqeCFrSN4/CgvbTndLHvPsnZitVfC1iN+/mqeLag= X-Google-Smtp-Source: AGHT+IHRhetOY+GKLKLp0oFrYUIja4ZNjkEHbsFvHWSLLr6AEUKGn86j8jttfbFPxFSow44v5ZAQMg== X-Received: by 2002:a05:600c:4fce:b0:431:5533:8f0c with SMTP id 5b1f17b1804b1-4318425fb2bmr62248085e9.29.1729788867920; Thu, 24 Oct 2024 09:54:27 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-37ee0b94363sm11788307f8f.73.2024.10.24.09.54.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Oct 2024 09:54:27 -0700 (PDT) Message-ID: <6de4bf6c-ed59-4d32-9e26-19309c8ab543@linaro.org> Date: Thu, 24 Oct 2024 18:54:26 +0200 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] thermal/lib: Fix memory leak on error in thermal_genl_auto() To: Markus Elfring , "Rafael J. Wysocki" , linux-pm@vger.kernel.org Cc: LKML , Lukasz Luba , Zhang Rui References: <20241024105938.1095358-1-daniel.lezcano@linaro.org> <45265aca-7371-455f-819f-c4d68cbb089b@web.de> <9ba3fa17-57c3-41e9-9e19-33fa105a179e@linaro.org> <03a4edf1-9562-49fd-81fe-d96f46a41d28@linaro.org> Content-Language: en-US From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 24/10/2024 17:19, Markus Elfring wrote: >> For correctness, I'll send a V2 with the return fixed > > Would you become similarly interested to increase the application of > scope-based resource management also for the affected software component? Yes, I know it exist but I did not take the time to read the documentation, neither had the reflex to take care of that. Something I have to do :) It seems like this function is a good candidate :) -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog