Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2303247ybk; Sun, 17 May 2020 17:01:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP7/kN6b5kIxSj19r18KZGee3jM1VZWZ1p5nI9MxIIQgwkdQGxZIDoQmK5El5q5JvLbtOA X-Received: by 2002:a17:906:a29a:: with SMTP id i26mr12380484ejz.199.1589760085457; Sun, 17 May 2020 17:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589760085; cv=none; d=google.com; s=arc-20160816; b=Unugy2nv3FGfrAIXvJCX0m+2hGTyoF0KIAYnjlbmmNUh5kpz6GSc4ocN00YZzXY/NG 18IuinEaQzNAYO5B1PouoC9XmhTnSlBdX5WocVCFYkhOoCuw9qeWu/XkKr4KffMnkBKj DIpbGCPCRxL6aiYJri3FlSiIYMuQDEST0IHjWPF6QOIfjYQmZkJQ6Z2xsiQyZXAwmVSq akz1T/coGRQE5UBqBVixD0LM+2L17x+QWfbxicRVThY6EMf8zQDvE1D4Qy3FOeyo/npv JRP8B5z1sPT2//x0NeBTRyLi+1GnqkIb/glodbEogsRtcrikslCDjB0hQhiInChaWDSa t9YA== 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 :mime-version:message-id:date:subject:cc:to:from; bh=WygXQq7COfHXYUNFNVJbqoqXk/fDsRWGbCYJDmciCZY=; b=eg4nf+Qw2H3gcXe/IFJWvvw8juosRuNcPniFigNtRPu6D7H3bWBVU6E8mqtxgFmZmA xeW847gSql3+xfXiBUR7LpcWXe3BPdVRGc+CV3Ms9pL0isrqyvWDdRaEmhvpdAoY7nua mdi0bZ2Y/6oGW+/H2EnYt1dSiYYJWAq+d/slHyheIYsOylXkiPdMLWfmwjaRJSmCaE8u YrDqGjCc85soAonGn4vFS1X8ttlGbPQSMuZVTG2zEWRbMT0HwQ/A9PL3v0ZxuwaOkiVS AlcLEiFQ1dihJzj1iptqBaGgYUzXb+0JVo+OGqwMQyTR/p/b3kWRkNxTOMxlXZnnMLHt UGDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=Av50MoMn; 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 s9si2095482eju.20.2020.05.17.17.01.02; Sun, 17 May 2020 17:01:25 -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=Av50MoMn; 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 S1726889AbgEQX4W (ORCPT + 99 others); Sun, 17 May 2020 19:56:22 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:1781 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbgEQX4W (ORCPT ); Sun, 17 May 2020 19:56:22 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 17 May 2020 16:56:09 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sun, 17 May 2020 16:56:22 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sun, 17 May 2020 16:56:22 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 17 May 2020 23:56:21 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 17 May 2020 23:56:21 +0000 Received: from sandstorm.nvidia.com (Not Verified[10.2.48.175]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Sun, 17 May 2020 16:56:21 -0700 From: John Hubbard To: LKML CC: John Hubbard , Matt Porter , Alexandre Bounine , Sumit Semwal , Dan Carpenter , Andrew Morton , Subject: [PATCH 0/2] rapidio: convert to pin_user_pages(), plus a small fix Date: Sun, 17 May 2020 16:56:18 -0700 Message-ID: <20200517235620.205225-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1589759769; bh=WygXQq7COfHXYUNFNVJbqoqXk/fDsRWGbCYJDmciCZY=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=Av50MoMnmPmDKeqjGTkSknWAg9YKnSYXVgyvUplqSqBVVUKJ09SzcIUYuWgjIJBOR m8s6E8CQ6ZXKCzJN3DLPaa4MeCwhA4vh+nD+AuPBOKEOmVff3Frdr9UT0BF01afKt/ NF5/b82MzHbBa2kCyS6tmA52FKtEgN9JD4Ftkk8+vish81pT9ZsNV05BsLy36scvTh 8XRn683/8kwOsBEJRJarzv+gDVbAGm7u6IqDQDAARzeR9r3oC5jLaVldKkDd6WvPUh MZz3dj9xULeBnqlOBcZ2x0UxXlMcg9TnNd7zvEWOfattE0hX/bizEa/aU6KwL6SWpp NakKVu9vCcJEw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While converting rapidio from get_user_pages() to pin_user_pages(), I noticed a small problem in the error handling, so that is fixed first. As such, the fix has -stable on CC, and can be separately applied. Note that I have only compile-tested these patches, although that does also include cross-compiling for half a dozen arches. John Hubbard (2): rapidio: fix an error in get_user_pages_fast() error handling rapidio: convert get_user_pages() --> pin_user_pages() drivers/rapidio/devices/rio_mport_cdev.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) Cc: Matt Porter Cc: Alexandre Bounine Cc: Sumit Semwal Cc: Dan Carpenter Cc: Andrew Morton Cc: linux-media@vger.kernel.org John Hubbard (2): rapidio: fix an error in get_user_pages_fast() error handling rapidio: convert get_user_pages() --> pin_user_pages() drivers/rapidio/devices/rio_mport_cdev.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) base-commit: 5a9ffb954a3933d7867f4341684a23e008d6839b --=20 2.26.2