Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4047919ybg; Sun, 7 Jun 2020 19:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9c46hce7iY3NqZKZ8M5vzJjOrRlH+ayBNTPbEpven2o4oGJ1PalVZLi29i0yxnvvYMwgV X-Received: by 2002:a17:907:119a:: with SMTP id uz26mr19952324ejb.523.1591584734990; Sun, 07 Jun 2020 19:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591584734; cv=none; d=google.com; s=arc-20160816; b=jReW7g//9ratRoT2TNAqV3Vlts3MQIr8f9X3vTqNKISNaxWTgP/mtBKCw5gYE/aaBo G6uObSHVPnjd8BFcsY+GqahgKiESyTwDwCn+4nZP2u2Ow5rGqEYSvJF8sb4i5Dd5Lyki IL+LjcJiynMTo+EWwZXPTZUdaBqceRlnNyVI6Y6YS/DvftGZ21LmaozJOsvRZYd7VsOm QumQo8KfVQPl3MWpUIzS7VMtqg/cLwVXGceB5hskfVUoRELjPT9uBcWVn3UUp4lPLK4h fp6+ACWebaSzdnK1tV7wayZzg8Ylc3+CgmjWvSFm2iRmXjSGZrRvLq9OeYzmvoQkagcI oaEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=znAV4BTLh8/343/yaJhBxdC/mdwphQ87iP8PLyCFkqg=; b=pAmRZeYa3lCPTOglVk4Tc3n5PH/dicsL3+OjHu/OghxzNqmZcu+urT7h8+vMTdlSa5 Rue67kq7oTze0PiyVdQCvpDjW2TI6zq6NdVcpqc+WSH6jd8lTYhReCEbDCzkQyeDdUns XkQQVDxSL5RFUAulneTv7HDO3FY7MsUZFFpQbLJSUowCkVcoMmohGwis7PkxwOug3X+A GNL6Lc8JHHvk2m40aWt4/4gyUWKu6lP+nekZ2gVF1LVmwXH8DIzG2EyPRIwfLXMqYwsO 74iCXqNwDl7xKFHbHigfpEQXpUy/HF2ZkLiaeKRPdhiMIu9+5y64dqV0hg+PToqyF6kr 4Aow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si7686750edr.375.2020.06.07.19.51.52; Sun, 07 Jun 2020 19:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728773AbgFHCr2 (ORCPT + 99 others); Sun, 7 Jun 2020 22:47:28 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38626 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728409AbgFHCr2 (ORCPT ); Sun, 7 Jun 2020 22:47:28 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 48C06372CBBA9DB0582E; Mon, 8 Jun 2020 10:47:26 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.214) with Microsoft SMTP Server (TLS) id 14.3.487.0; Mon, 8 Jun 2020 10:47:22 +0800 Subject: Re: [f2fs-dev] [PATCH 1/2] f2fs: use kfree() to free super in read_raw_super_block() To: Denis Efremov , Jaegeuk Kim , "Chao Yu" CC: , References: <20200605181533.73113-1-efremov@linux.com> From: Chao Yu Message-ID: Date: Mon, 8 Jun 2020 10:47:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200605181533.73113-1-efremov@linux.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/6/6 2:15, Denis Efremov wrote: > Use kfree() instead of kvfree() to free super in > read_raw_super_block() because the memory is allocated with > kzalloc() in the function. > > Fixes: 5222595d093e ("f2fs: use kvmalloc, if kmalloc is failed") > Signed-off-by: Denis Efremov Reviewed-by: Chao Yu Thanks,