Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp627564imu; Fri, 11 Jan 2019 06:26:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN4y4RBX4MtPT4I74Dx//RvVjdMZpY6B1Ot6kMa4q9p0ElUA3XT1ee8jeSxHIyNXXZvuIQCr X-Received: by 2002:a17:902:a710:: with SMTP id w16mr14531550plq.95.1547216780306; Fri, 11 Jan 2019 06:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547216780; cv=none; d=google.com; s=arc-20160816; b=NKK2itzlRRKZ6Ux2jo2jo+SHwrfhz7dGouVQ2Lq+uwK4uKEGZzcWAFDTFp4NeREocJ u8MIUFA5p+ASQqVFXZcffRJCw3KESgFBlGqJUpax7pVsCHDgcdcPVIRIx00yWoaxUmwb mXLRsukY6pOEK6beNlCPEduRsDO+Okxr7RHe2edl5f/vo3tcNZsD/upXINkGKkfO0I8O mgo5sVZ2lYu24zglvOwtc4ldM7KZYtjA3yznmM0EGwIqvNwEoQN/jHMY4Ejyt7rdRlTP Sjs8hAaE355tuCohU5NcEfAQz5uY41TuN2wK2RoMyjlrP2FFJbD1sIImlZi2yBe0RZ8d GZgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ParrznoYkVQuFHTmCfE9p/COOivwbrNjQiodcX0p7WQ=; b=f/RNNBijDhNnq7S6krj0FDN/iuAIH2XKaKHB2DQT1uTu6wA8yOxGOSh1c1j2FqF2Mh OOMUuSGTdNS4YnOyNdnKtFboVEosZvrdKo3giTvZYxw0zuAUEMR5/nvBllZj+EI1DfHI dUzMdnKbUKIsEL03iflQYf5/um/CB5AEcwXNtWu7L4jeq29m0kaaC/IgIPqil723/ng0 WTkPGGVxiVFPIyhyc+B7kNfJeYhBNsJ4rFZjg4943Bj+bxJSUXyCt76x/ka9eNV45ZP6 Hwhm8+zQJd/SFWDCRU5/809GOEwmq6THzNFyYLLspcw503Ti/gnymYQpF6Cs05CBk9t1 x4MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m0xZ7X+y; 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 f95si22564859plb.60.2019.01.11.06.26.04; Fri, 11 Jan 2019 06:26:20 -0800 (PST) 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=@kernel.org header.s=default header.b=m0xZ7X+y; 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 S2388079AbfAKOUR (ORCPT + 99 others); Fri, 11 Jan 2019 09:20:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:37824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732575AbfAKOUN (ORCPT ); Fri, 11 Jan 2019 09:20:13 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E38212183F; Fri, 11 Jan 2019 14:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547216412; bh=ylGCu8carYQ079TL1i7emMz73KkhocXSOChmqk16988=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m0xZ7X+y17pPdsW8g1T5NVkgAvu5SJAgOYS69KKhJXZMge0T+8DbCpwObc4an3f31 yYpUjH5VsL837TQQrXo2mRrmR7ndLbL/ZmSIHhXaJGO5DazGsFhe/xWsnsfZj6WZiG HB2SJxGdWiQe53RynjYWXV+6OTxn7QNj4cPAYJvs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maurizio Lombardi , Theodore Tso , stable@kernel.org Subject: [PATCH 4.4 43/88] ext4: missing unlock/put_page() in ext4_try_to_write_inline_data() Date: Fri, 11 Jan 2019 15:08:12 +0100 Message-Id: <20190111131052.454835921@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131045.137499039@linuxfoundation.org> References: <20190111131045.137499039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Maurizio Lombardi commit 132d00becb31e88469334e1e62751c81345280e0 upstream. In case of error, ext4_try_to_write_inline_data() should unlock and release the page it holds. Fixes: f19d5870cbf7 ("ext4: add normal write support for inline data") Cc: stable@kernel.org # 3.8 Signed-off-by: Maurizio Lombardi Signed-off-by: Theodore Ts'o Signed-off-by: Greg Kroah-Hartman --- fs/ext4/inline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -701,8 +701,11 @@ int ext4_try_to_write_inline_data(struct if (!PageUptodate(page)) { ret = ext4_read_inline_page(inode, page); - if (ret < 0) + if (ret < 0) { + unlock_page(page); + put_page(page); goto out_up_read; + } } ret = 1;