Received: by 10.192.165.148 with SMTP id m20csp948009imm; Wed, 2 May 2018 11:22:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqmFQOCXf+woRZFbguw7HP1UHOnMl+CuI+y0oiDgvgRy+0KITa74fonP3mHDIG+ZwYonQbs X-Received: by 2002:a17:902:850a:: with SMTP id bj10-v6mr12579557plb.239.1525285327489; Wed, 02 May 2018 11:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525285327; cv=none; d=google.com; s=arc-20160816; b=0mlq6v6tctyYEXbfxN7BhjxS3GGNJLR74vOIewQulj/ilQ+76iFUG1bozcdQWeKj0u Lc4UY2IHRRigxWkD0n1SgDWYHNe2AJA7r26ZQ0BHk+e1GzaCerqnuYoU9EH/jZNj1Qog lsX9eAAdZHNKlQiQr6yp0yCUj0CqgfQwLiyj30X4UfrngO9nK+8GDnl6GujXoOfbTiVn oII1ugLG/GrP0hjZTMTvmoGDGeVPWpYseMMHChrKfDJ1/20cSKNlRY3QjYsv+EbDD11k R4Ilee5MoKHrjD1E3P305rIpFbgQTRim+rx6bMp+XKt2EZt/C22Ktb39Xd8wG76ekUHB U9yg== 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=yN+4IsOQ3mWQRqbrWUu4Oa6/bmDBH7Rr076fFIcGf2M=; b=xI5mObjIAwM2HhOWVq2IOUMeg6Xv8JLUtc9BdtLWHmBQbWJElCdCLWVspE1ru8F8bb BlAyFhTR6wAq3THy6D5/ZPSzLquqTmZ7cEiYI5iaGJ/knzC8cPT3nFOeH8jPNeFIkWI4 SYQ7CVNOyidX0QfBdk0xB/9yFJH7hbi85Gymgr9ySW+3dLNl0/ScEjIV/dOGE3hS0xYA l03SpD0OaH999v+oyUm2d/hRE7CGQN2DkIVFVtpyYazJVeg9CeSwV/Q+HLPK2VFrjFCk nrLCnoxqrfsKpx28SwwWTqiIGo2WCWKBBzzY/akJgUCd2Zp3rs1tvbUTyy+7QDYi9/P5 W31A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oxcHnbxm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18si11949984pfe.13.2018.05.02.11.21.23; Wed, 02 May 2018 11:22:07 -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=@gmail.com header.s=20161025 header.b=oxcHnbxm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751030AbeEBSRZ (ORCPT + 99 others); Wed, 2 May 2018 14:17:25 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:42062 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbeEBSRY (ORCPT ); Wed, 2 May 2018 14:17:24 -0400 Received: by mail-wr0-f194.google.com with SMTP id v5-v6so15008892wrf.9 for ; Wed, 02 May 2018 11:17:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=yN+4IsOQ3mWQRqbrWUu4Oa6/bmDBH7Rr076fFIcGf2M=; b=oxcHnbxmRHaXxwwmjBTTOvg+2xnOWIGuMdWzRq11JePk1DKW4PipZSFl8wdGmB6xq2 d1F/UHy762s6OLb4Mty3azNeaxxW79itVNWGHy2qjpWD1SYUVpIxpT49+fjvDD3xm0Im t+PgcwDTyR+7eWJIyjcpSjnmxJaVDMvvxJAbKJjFT3jPa08IfLvwIJ5LPx4ucWGmp/r4 S3bFylK2MFhW9DQvZwGUnZRYC5jRh1AkFROY4SKWT4JOkyk9yBKuMChxV9P5CeXBoK+c TDCdggFVAYa/VONP6UZPLD0ReqnwHC1a6UFSrv2+oL8htZ2YHJ4WRc9cTgGdUJpjTmpV S2jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yN+4IsOQ3mWQRqbrWUu4Oa6/bmDBH7Rr076fFIcGf2M=; b=BSFBvo8FaUnN3u7hsvSXzmre+OXOkcrNy84GZGO/pcjoCC7OpeJZhpbl+3wkm0PCpS HBWPWqAg9oh3Nl5BtsnzH5KAe7xwYuOi6ZJ8EaFp2Md2dgNAhBjZPgACKPfH+CBOun4N SE0ahLIG/EqYoaaSZ6G8jjiaw8nLhSFWW1/n4E9VGrqmEH5zHqhGC2Jf/sRCxyHE/c2A bbi3qMqMb75jmBugQ9vZjSrteYFZb8N7mAfnaCp0e2+oOf8PlkKZlPaVTiEQrF4FRbPR nr97awxEltXLZO+f8Vf4xyPp3yCInJZF4WTYVc5BjE51d9m0DULfC3I8vdtDe38e4e6+ ofGQ== X-Gm-Message-State: ALQs6tBzJ7TxmWOSMjCh9E9hfQTZ/zBPukToaaPSGtggORodYoYCRgpR raQAWLb0j2xu6aUNbHr/WZQAeRtw X-Received: by 2002:adf:8b08:: with SMTP id n8-v6mr14659826wra.189.1525285043392; Wed, 02 May 2018 11:17:23 -0700 (PDT) Received: from orange.brq.redhat.com. (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id t203sm12439379wmt.33.2018.05.02.11.17.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 11:17:22 -0700 (PDT) From: Ilya Dryomov To: Al Viro Cc: linux-kernel@vger.kernel.org Subject: [PATCH 1/2] iov_iter: fix return type of __pipe_get_pages() Date: Wed, 2 May 2018 20:16:56 +0200 Message-Id: <1525285017-18616-1-git-send-email-idryomov@gmail.com> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It returns -EFAULT and happens to be a helper for pipe_get_pages() whose return type is ssize_t. Signed-off-by: Ilya Dryomov --- lib/iov_iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index 970212670b6a..4d5bf40d399d 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -1012,7 +1012,7 @@ unsigned long iov_iter_gap_alignment(const struct iov_iter *i) } EXPORT_SYMBOL(iov_iter_gap_alignment); -static inline size_t __pipe_get_pages(struct iov_iter *i, +static inline ssize_t __pipe_get_pages(struct iov_iter *i, size_t maxsize, struct page **pages, int idx, -- 2.4.3