Received: by 10.223.164.221 with SMTP id h29csp1612044wrb; Sun, 29 Oct 2017 07:52:06 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SJG8W0SUXR+FAVhTDuZEw3Q+LoF0XNhv3DVVfq3+CEsW4/qVSLBRglLmL6GsN4V87IufHZ X-Received: by 10.99.120.138 with SMTP id t132mr5421250pgc.88.1509288726083; Sun, 29 Oct 2017 07:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509288726; cv=none; d=google.com; s=arc-20160816; b=bzO0hfC/6wPxvq0bMjinKRQwosuUNDEJW7ca01sADJt3AgzwmhuD2GONtAW5NHFs9j rR4oRk6uleMCqiJ6u6Ol9BvoPcD/jYCLngdhxxC9tKsDSCqwEMf7qEbDrohU1gUpZbkz xBsMqS2+y1X2AbuJ6WZyCRq3gOMNXyXbikkiH+Y+SQquNcwHjFM1OZRzZPuAJs8y+8nD mmLfH1fBYDN4+ylc3YCuJKwBhaxr1lPFJ0aAzGlTc7ov/d+U1qs3hiFd4uBizxgMJIrQ yqN3VB0+1DAmfmrcT/b9X6qBaut6oI2l9D4XN1mM+anzTTanHZxg4Nal3h+Z8PG3KjYv T9rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=osHhKk/oBeBYlaRUBTLXA1TL2XwxgjSLPn+SPNYcIPo=; b=eB3V3RCL2c2DOh8QDH+ypQ3LRVLhGfijLHG5g+W49q+LHg1RJ60HGsW0OXgX0O/c9S 6rKitSaO5bLzEeAaOeixR77W5mCKkjXb/I9/qPC50qfEA4M1anI11uwHG9IgxamPl4H5 EhopZoBRt+ewLjDJBTzyWW0ScgNMDTTNwDr29Z5lJC7kEEgSGQGJF5+A9lKBI0zmaiED m3F45nwBimhX1hwR3IGrqNPKmWa0x5UPHW8QFOrrfPaWKuE7lr7lV58/I4RNmEgEkOud JkeVQMg3elyuau4SQ7P+m8Y/dXQVkeoF7cQRK2DYOXDfZ+LFttvZwDAjxTaWcr55p+qf KHOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=AnGnFycZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si7869759pgr.78.2017.10.29.07.51.52; Sun, 29 Oct 2017 07:52:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=AnGnFycZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbdJ2OvR (ORCPT + 99 others); Sun, 29 Oct 2017 10:51:17 -0400 Received: from m12-13.163.com ([220.181.12.13]:34779 "EHLO m12-13.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487AbdJ2OvP (ORCPT ); Sun, 29 Oct 2017 10:51:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=osHhKk/oBeBYlaRUBT LXA1TL2XwxgjSLPn+SPNYcIPo=; b=AnGnFycZDghLBFcuKfeQdkfxVTkUKZlj/i 5zwN5SxLlLBpX1ADQCApt2ef40aOBHK+KvGSL76nE5UWWL9akUCUYJ/3Zg98T+PI Xm2TJscGqTa6EgNSG+wsLuKcOuQvLfVU83i4gT+rLJV9MyHKvs++fGJ0LX/Pluss pK6Tui3Mk= Received: from localhost.localdomain (unknown [1.202.77.139]) by smtp9 (Coremail) with SMTP id DcCowABHzm7X6vVZc5zMOQ--.36343S3; Sun, 29 Oct 2017 22:51:06 +0800 (CST) From: Pan Bian To: Matt Fleming , Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Pan Bian Subject: efi/esrt: use memunmap rather kfree to free the remapping Date: Sun, 29 Oct 2017 22:51:02 +0800 Message-Id: <1509288662-7880-1-git-send-email-bianpan2016@163.com> X-Mailer: git-send-email 1.9.1 X-CM-TRANSID: DcCowABHzm7X6vVZc5zMOQ--.36343S3 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU3YiiUUUUU X-Originating-IP: [1.202.77.139] X-CM-SenderInfo: held01tdqsiiqw6rljoofrz/xtbBZxqAcletnmSzIwAAsf Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The remapping result of memremap should be freed with memunmap, not kfree. Signed-off-by: Pan Bian --- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/esrt.c b/drivers/firmware/efi/esrt.c index bd7ed3c..3ef7001 100644 --- a/drivers/firmware/efi/esrt.c +++ b/drivers/firmware/efi/esrt.c @@ -431,7 +431,7 @@ static int __init esrt_sysfs_init(void) err_remove_esrt: kobject_put(esrt_kobj); err: - kfree(esrt); + memunmap(esrt); esrt = NULL; return error; } -- 1.9.1 From 1587150308822266423@xxx Mon Dec 18 19:14:45 +0000 2017 X-GM-THRID: 1586079454229052964 X-Gmail-Labels: Inbox,Category Forums