From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 764171DF258; Tue, 11 Nov 2025 00:55:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762822555; cv=none; b=OfxCsba2oTIllyWNp5Q8gmubTCOxYD+0cUBy0hSto2isgAOKxRohm97HxAQWoBfEQC8Y7jjCnhEB2JTHcm2XBAZ5rF5pMEITiEHkIBllqlh1PLNv3lqgyN7NTsYqZOLeYGzA4hnKEj3kxB4m8USQ8dH+F+zSREXypmShxmAA5NI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762822555; c=relaxed/simple; bh=g45syoHhH73B8adJE7NfjdoZzJbgbw+9iLQwWrf7JcU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IMIeacB6MOSEHlJqs8C99Y6vXcEb+QcGufz4bPkN1VmpMEFfXgHR9qaKpXbQaTzRdUbWljpn/wpMnax9JARdyvyHm+fIy1WXJV4jMUhNWjRoKU+sErlOZ3VjUeSz/UW6QFEJbGSdvmjhOI+IWxj9aevpHkrqgNOz0dTx0q6SMLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HBi/7OC1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HBi/7OC1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D933C4CEFB; Tue, 11 Nov 2025 00:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762822555; bh=g45syoHhH73B8adJE7NfjdoZzJbgbw+9iLQwWrf7JcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HBi/7OC1oT2pAKHfprfCT92e7h9V9DNorf3E7kvo3AWf5X1EGNpKiKIrE308cHIXS QQ/H6KhfmN3xcNnNdvzsY003ZrY1E51//ah8m4pljZ7KtDS4nEFypfQTFBQd/WlMXB 03ZqvOGqv7uj/qCb4uiNjKIkIf8wTbm3ie/ISqOs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kaushlendra Kumar , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 6.17 136/849] ACPI: sysfs: Use ACPI_FREE() for freeing an ACPI object Date: Tue, 11 Nov 2025 09:35:06 +0900 Message-ID: <20251111004539.684649732@linuxfoundation.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251111004536.460310036@linuxfoundation.org> References: <20251111004536.460310036@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kaushlendra Kumar [ Upstream commit 149139ddcb99583fdec8d1eaf7dada41e5896101 ] Since str_obj is allocated by ACPICA in acpi_evaluate_object_typed(), it should be free with ACPI_FREE() rather than with kfree(), so use the former instead of the latter for freeing it. Signed-off-by: Kaushlendra Kumar Link: https://patch.msgid.link/20250822061946.472594-1-kaushlendra.kumar@intel.com [ rjw: Subject and changelog rewrite ] Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/device_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c index 3961fc47152c0..cd199fbe4dc90 100644 --- a/drivers/acpi/device_sysfs.c +++ b/drivers/acpi/device_sysfs.c @@ -464,7 +464,7 @@ static ssize_t description_show(struct device *dev, buf[result++] = '\n'; - kfree(str_obj); + ACPI_FREE(str_obj); return result; } -- 2.51.0