Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1342185pxk; Mon, 31 Aug 2020 17:07:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ+32CvFua5YSAe7qztt/O32p6CYCJZ70ZWWRmnX3zwOJEvn3gVfnnLKivR5dD9OvGqskY X-Received: by 2002:a17:906:3e0a:: with SMTP id k10mr3345531eji.148.1598918875457; Mon, 31 Aug 2020 17:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598918875; cv=none; d=google.com; s=arc-20160816; b=yfL9ml/49T5ghunAFTAr4cBir8CCJ/ixjTFasSHeRDS8RlGJiuqAfU1gnru56zHB0h MyvkXklA5aRoYAf/xAkSRqFJxEcPuiQtErtWXmYYPtaE9/QHHukFnZGnvAhYrEUPVMne hF1vVsU8ltito4veGHou1Dv70FHz+miroiUEMLHKY3JschfimHEgZIX73g7AOv2NlNMJ VsxRtPnSmjErhH8T3lMBnS+q8wc0d5eOT8fBiDHwxi93T4bWuyrfDmd+XSr/zcQq/tWQ N/KiPa64D5VMPCW8m5YSCLQLQxAO2fLTk+OXvBHise9MKAPoB3ELFe3QDbeIFKsnresz b4lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=agNV2Aylb9h3c45mVq/weENCCNhsN69VCA7wrvLO6ec=; b=t3evPqgOrF3L0OuwBbFBURhuzvMs0YhrID6tqSDspdMD6kUHejL/04AtEaWV5iO127 YlW6MvQ7U0CmZoVPTxlrA0e2z6Ylvfp5lWwBY9OL+7RjJpSsJww6D2ai7eP5Av3hTiZs wc/k5TF0/IBbIIgDjq1Rqg76DSr8XQaFJOr92uEqEs7tGIREnBf0H5GX/YH1nvT945+E fEdb2iHYtxUaQfzrccT6DD9v4IMxr8+UhAFwQQ0MEOiM7PeXuqJR4HIUJDNujBUFgAye ZwjnSE/ZTRwdV0BmyZxkJTp0E0IWdmr73fPIkYhVr+M0UIjZbZtCXVBd2X9NuHDl1uaX zytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=HeZ0cUBk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si2233299ejv.661.2020.08.31.17.07.32; Mon, 31 Aug 2020 17:07:55 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=HeZ0cUBk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726105AbgIAAF1 (ORCPT + 99 others); Mon, 31 Aug 2020 20:05:27 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:14530 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbgIAAFY (ORCPT ); Mon, 31 Aug 2020 20:05:24 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 31 Aug 2020 17:04:38 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 31 Aug 2020 17:05:24 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 31 Aug 2020 17:05:24 -0700 Received: from [10.2.61.194] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 1 Sep 2020 00:05:22 +0000 Subject: Re: [linux-next PATCH v3] drivers/virt/fsl_hypervisor: Fix error handling path To: Souptick Joarder , Andrew Morton CC: Jason Gunthorpe , Dan Williams , Greg KH , Arnd Bergmann , , , References: <1598911668-6178-1-git-send-email-jrdr.linux@gmail.com> From: John Hubbard Message-ID: Date: Mon, 31 Aug 2020 17:05:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1598918678; bh=agNV2Aylb9h3c45mVq/weENCCNhsN69VCA7wrvLO6ec=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=HeZ0cUBkFN0XbbqhmMq+zXg6t0cLRjCSHzfnWXDfNbcwkreFGOS9dlC0X3fiTZTqW o8IIYvf32fykVki9dKCbu8Nu7FWkfn2dSuTvIe3zHaB1l9kDMkMtr2efjyB8wZo1AB dPh/bRkx2gl/nd3+nIqPX0RQ+OaAvLP7ok36ET6k1XVmUGPK7jprwrhRAxzADEnd+B zfRTzY3RUn7jCg/HibwU1hEBL84NDIPgcViclhbVrVLZdlWXyLEVFxq7+rBbnY1gG7 ql6F/c9wySqswiX4F9Oj73f+vXdKcMmGHIYb1rO51oGtAKpITr480Of5oq0nw2jSsR 2K1Lkupbtswrw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/31/20 3:10 PM, Souptick Joarder wrote: > Hi John, > > On Tue, Sep 1, 2020 at 3:38 AM Souptick Joarder wrote: >> >> First, when memory allocation for sg_list_unaligned failed, there >> is a bug of calling put_pages() as we haven't pinned any pages. >> >> Second, if get_user_pages_fast() failed we should unpinned num_pinned >> pages instead of checking till num_pages. >> >> This will address both. >> >> As part of these changes, minor update in documentation. >> >> Fixes: 6db7199407ca ("drivers/virt: introduce Freescale hypervisor >> management driver") >> Signed-off-by: Souptick Joarder >> Reviewed-by: Dan Carpenter >> Reviewed-by: John Hubbard > > Few questions -> > > First, there are minor updates from v2 -> v3 other than addressing your > review comments in v2. Would you like to review it again? I reviewed it again. > > Second, I think, as per Documentation/core-api/pin_user_pages.rst, > this is case 5. > Shall I make the conversion as part of this series ? Not entirely sure what you mean, but if you just want to add words to the effect that "this is case 5" to the commit description I certainly don't see why not. (It would be ideal for a domain expert to weigh in on the cases here, too.) thanks, -- John Hubbard NVIDIA