From patchwork Fri Nov 18 06:32:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wangshaobo (bobo)" X-Patchwork-Id: 1881 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp28600wrr; Thu, 17 Nov 2022 22:36:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf72zG1Is7Q3YzzVAin1JnZgAE3STp7W4EL/ysTDRVMmR6r0mIhI/mvBp4+QYZQYuNOjP3eS X-Received: by 2002:a63:ce43:0:b0:46e:d2da:8ea6 with SMTP id r3-20020a63ce43000000b0046ed2da8ea6mr5308894pgi.208.1668753406576; Thu, 17 Nov 2022 22:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668753406; cv=none; d=google.com; s=arc-20160816; b=H8FadQ7bQsW8/BeGbHa3DvGi/HvBa6VJLhiUdeh6MfSH6mvwT9j4YMMzg7hFh6JuRP mBxu7CYgvZ/YlUn9V8oLRYRwRY+ZgNF6uMGa4nwd+vSKrj+RGijlJgzsOcCideFcD8+r eG0RC+247qouWXFuOiUDHGVgg2OY0zyoa1jXGCg0CaOAuYFLHChixQgJTwfWqIcMzdpq l9Gf76eJqHvPhtjSx0zUimNRJ2TuZ+MfBYPyTsAI0/uoo78RiJ1UwAUcmSeAH2VuIiNd 2kKtcIc2DGQP+0Bc69KjtQf/d54afejZrFFJcfH//ygVv4R8QQNdklDCrK95InHJN3E9 Oovg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=i8yCxk0lTwNHjOBYIODv7TOYagSKDFw57jQ/YNBYCcs=; b=F34gQSALmf5EUmEqs4Dlogqg1G8mWWGlt98EmfrdDsJEvINI7/1UKPW4dWBy9j6rlA VSCOwiEpvTBYJQ7akF0z6xq3t0/Xl+VVLKxUBdexn/V8CPaFD1Ts4y9XD7cCu6ockY7N sUKEKs5ot2Wq8fovy7172623iXXDPhv7yymZTF2zAWjmn+g3fnNN6a0poeOosiZHB6sC dPDz7JzISR6ZU6uHYrpffcIgi2qrsCwzEjfIc0cfHDU9z1r/+PkfUQr7hDZUBtYyaB2L HNuMreioEvVKN0rb5nEyn+5kFFI8eGR1y4eV224NacgbUuAJnGoCJIMPN8k8REYADhAA URqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a63e707000000b00476ff5e43d6si3072166pgi.319.2022.11.17.22.36.33; Thu, 17 Nov 2022 22:36:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240803AbiKRGd6 (ORCPT + 99 others); Fri, 18 Nov 2022 01:33:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbiKRGdz (ORCPT ); Fri, 18 Nov 2022 01:33:55 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D96CC6455C; Thu, 17 Nov 2022 22:33:54 -0800 (PST) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4ND6Rr2c5LzmW2Z; Fri, 18 Nov 2022 14:33:28 +0800 (CST) Received: from dggpemm500015.china.huawei.com (7.185.36.181) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 18 Nov 2022 14:33:53 +0800 Received: from huawei.com (10.175.103.91) by dggpemm500015.china.huawei.com (7.185.36.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 18 Nov 2022 14:33:52 +0800 From: Wang ShaoBo CC: , , , , , , , Subject: [PATCH 0/2] change to use ACPI_FREE() to free the ACPI memory Date: Fri, 18 Nov 2022 14:32:17 +0800 Message-ID: <20221118063219.2612473-1-bobo.shaobowang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500015.china.huawei.com (7.185.36.181) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749814772002360564?= X-GMAIL-MSGID: =?utf-8?q?1749814772002360564?= acpi_evaluate_dsm_typed()/acpi_evaluate_dsm() should be coupled with ACPI_FREE() to free the ACPI memory, because we need to track the allocation of acpi_object when ACPI_DBG_TRACK_ALLOCATIONS enabled, so use ACPI_FREE() instead of kfree(). Wang ShaoBo (2): ACPI: pfr_telemetry: use ACPI_FREE() to free acpi_object ACPI: pfr_update: use ACPI_FREE() to free acpi_object drivers/acpi/pfr_telemetry.c | 6 +++--- drivers/acpi/pfr_update.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)