Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1811922imm; Mon, 3 Sep 2018 10:04:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbxWt8LNTpqiyyUt+jKLH90Pby3jH7glkrxpNMUF/vgywKGlO16NyCSpZVvdcVBqauFXwRg X-Received: by 2002:a62:2c53:: with SMTP id s80-v6mr27651346pfs.154.1535994245122; Mon, 03 Sep 2018 10:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535994245; cv=none; d=google.com; s=arc-20160816; b=urgTlF4pvaY7DOLNZzEZ7SvIFt+XEw42DFYczgalcuNpe1Xhi8HkLZ/+X37EGM7he+ qYdhzv6/1uaRWxl9mdn7dPSTUUdkVr0kuRPw3cmfkoKIlHuKXf5UvNsb88xt3VyXAnnY 9X4Jqn/z8YiriIvOBPhDn2xGHQyRpOmN+TX2y+2Ky2VT80GBzV42r/K5hqfAORy4n3Mx TxiAw6JSiONu5NtuJEmEMa7b9T90rrvLxck35SAjCv/XMF1y0A0eEAwQm2gwNYsWNFDj XT2oOpdCJJOz0YG4kKxTm8sAqiiowZfqrKrAVlJWamb2Z830/70FouJOrzR2K1f/2T0C SzQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xDRpt7nmjcLRwx4x4eQcS2ErHDJuFu2XGLCqMKW/7Co=; b=xrWVd7K8Uj4QKOiAOyLb62ws963qqoNwvXHGofy/Jw0fixYDhBvhCN7AJFgRbWtoM+ 2HAGXGjT+uE/TAva5Y2jJ8tZ4BzDRdtSus5QrRcKIZLua/Eq/2ladyKiRfY2S5Jzcw8W idwxPGCTbJ4KnDO97K3BJWtxBG9uupZ471w5F6oq2bfUgPMbOQDjseXZyvRdz1GZctIQ DKs6RDdDpony8bLLcjsvSAezZQzfd5PhqNDKJRJQA8xcDJoT2T2OJtYXStUeolF+A6PC PmeUFtjScW80flvrDpqwaJPuYvDkhifGtExi4980DVrVwsk1iLiBXHepn84aSAK96t5W ASdg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18-v6si17434785pff.91.2018.09.03.10.03.50; Mon, 03 Sep 2018 10:04:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729094AbeICVXr (ORCPT + 99 others); Mon, 3 Sep 2018 17:23:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39000 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727878AbeICVXr (ORCPT ); Mon, 3 Sep 2018 17:23:47 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 79FCFCF5; Mon, 3 Sep 2018 17:02:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kirill Tkhai , Miklos Szeredi Subject: [PATCH 4.4 62/80] fuse: Add missed unlock_page() to fuse_readpages_fill() Date: Mon, 3 Sep 2018 18:49:40 +0200 Message-Id: <20180903164936.635410417@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903164934.171677301@linuxfoundation.org> References: <20180903164934.171677301@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kirill Tkhai commit 109728ccc5933151c68d1106e4065478a487a323 upstream. The above error path returns with page unlocked, so this place seems also to behave the same. Fixes: f8dbdf81821b ("fuse: rework fuse_readpages()") Signed-off-by: Kirill Tkhai Signed-off-by: Miklos Szeredi Signed-off-by: Greg Kroah-Hartman --- fs/fuse/file.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -879,6 +879,7 @@ static int fuse_readpages_fill(void *_da } if (WARN_ON(req->num_pages >= req->max_pages)) { + unlock_page(page); fuse_put_request(fc, req); return -EIO; }