Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2029964pxk; Tue, 1 Sep 2020 13:55:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXoUQeGAi2mfyO+eitMsI5T1T2pjBkUJUtDg+u/VnCtDg5aev0AyuY31AMeWJ3BwwOkxoK X-Received: by 2002:a50:8306:: with SMTP id 6mr3421346edh.340.1598993736756; Tue, 01 Sep 2020 13:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598993736; cv=none; d=google.com; s=arc-20160816; b=K9S8WQ/cVNrpZFqj8P7v8rM3NB4P+tBUoCa826cO3pKFJKos9HACiRn/R1eW7+b27G k+wSUkrQLzZxsNir0q1kP5Rs8vtuofnROmw91xYevXK7WQLUOsVudyQWmCMYzDokvhl/ +/URTH4ZM6QyL0eov66tE94hYMoAhMY8rlayFXRFCWReNcGRu9zxqsEwBX9e2pPml26+ o11G7SrGuIg98NpFbhMWZYzFNXSAJLAGiKgcVWoDfr6lCGd9ag/3788Gz4pBADskkVM8 DOQUzONm16GycUA4RmGTyNpf20HwEPw/fhtceoH9uogP7jLkKBz1jIXM8ZBdh5/iADft wxCQ== 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=uEQMEQauSdG5Y0zgHkx1tgB4MhXnUjYrABtFmwU3Rhw=; b=TAt7/2khA7YMpyuwNOiIsVDsI6rGOdM/jLUJeHbAE6Pr3qqhhC8hEFJUFvz5mO1SbP gRR+6gzNnLAQgBEWvN38ULdG8lqsG/2tnrf8i61cfKrBV1Aj4iGnphzGUJ+ImBbKTaWe aUOfjegwyVvvn1n7V54zES2B8n3teWQnk2p0bFzyfg49jUdIYGxVgEMNN/I8zWBVvgZe VFr26mIxmGv2gPBrQGjx2vCFrV25CTw3NA46AiD2YaB1luo23vKYnc9014okaNklj5dU LtHLuR42mK02D+iI3NOsIWDr11kUNfUgFLx20DBTHp2vVIJj8/l6lZgQ/b2aewV2IONH gyXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=E0ox2Slo; 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 j18si1352802ejv.121.2020.09.01.13.55.14; Tue, 01 Sep 2020 13:55:36 -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=E0ox2Slo; 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 S1727823AbgIAUwL (ORCPT + 99 others); Tue, 1 Sep 2020 16:52:11 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:15688 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbgIAUwK (ORCPT ); Tue, 1 Sep 2020 16:52:10 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 01 Sep 2020 13:51:24 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 01 Sep 2020 13:52:10 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 01 Sep 2020 13:52:10 -0700 Received: from [10.2.63.6] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 1 Sep 2020 20:52:07 +0000 Subject: Re: [linux-next PATCH v3] drivers/virt/fsl_hypervisor: Fix error handling path To: Souptick Joarder CC: Andrew Morton , Jason Gunthorpe , Dan Williams , Greg KH , Arnd Bergmann , , , References: <1598911668-6178-1-git-send-email-jrdr.linux@gmail.com> <82329783-739b-a315-8957-2c49a3ab1350@nvidia.com> From: John Hubbard Message-ID: <10705531-7a03-44d9-3fc7-e520a7b1cd87@nvidia.com> Date: Tue, 1 Sep 2020 13:52:06 -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: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) 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=1598993484; bh=uEQMEQauSdG5Y0zgHkx1tgB4MhXnUjYrABtFmwU3Rhw=; 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=E0ox2SloH0eoJCFbFG+VRtbIogTe6SeMhYmPHB9syCZtfKXbtbKRJUwSBWcWoEC0W BBekW8WzPVo+DaK2F8qvKAda8xLbDmVajwsEx3mET2HSKirHsLd04Rok4oBgps0xMM jYl1R452ovsQ9LMnqD5d5RCfvxuUR9Ax+R30MY2wKzbdETVYeUhMkORZFGVpjk02Sj /JMe/U0m774LMvQrcowjAxjVPvwXhOIAplG8/PaUqcw6oZpF3SwzC/njJiRPks43W1 SXEiYjK2jY2e/XfjWecvAf2uM5c4O2vkJXC/aZAgNW0Z0eKuDFhcFzYBVGpq59OyvO u/s5+mG8PKK7g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/1/20 1:14 PM, Souptick Joarder wrote: > Hi John, > > On Tue, Sep 1, 2020 at 4:28 AM John Hubbard wrote: >> >> On 8/31/20 3:07 PM, 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. >> >> "we should unpin" > > will it be "we shouldn't unpin" ? can you please clarify this ? Whoops, I put my comment next to the wrong part of your email. Sorry about that! It was supposed to be a correction to this sentence: " Second, if get_user_pages_fast() failed we should unpinned num_pinned pages instead of checking till num_pages. " ...which I wanted to change to: Second, if get_user_pages_fast() failed we should unpin num_pinned pages instead of checking till num_pages. thanks, -- John Hubbard NVIDIA