Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2960325imu; Mon, 19 Nov 2018 08:39:13 -0800 (PST) X-Google-Smtp-Source: AJdET5eY2SdW9rUG6crS2ZMQQZxGQqIBReexOVNDMh2VwHh1GCMCVIjWTukrMFIKDIQg4rIknEmK X-Received: by 2002:a63:2c0e:: with SMTP id s14mr21144297pgs.132.1542645553370; Mon, 19 Nov 2018 08:39:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645553; cv=none; d=google.com; s=arc-20160816; b=h3FWk3ZotzsVF8FE6irk2akZYsqHwIJDJ4f9mErRwcw2ER0l+e9XWdkl032oA8ieri 26vi96UW+GxTfMtXU3boKOkh5N97P3+Y21/eFDXkeX7cnFJSsgNc6bOl36Wrnd31/fNA iPcCq7Rlwq7Hv8mY+ridZmtmvt6dHzX/kuCa30xPytFgYmQLpYA6E/YIHHClwf9COmbr qFUc5bIYcf3AJ/aKvZgMlPljdkzAYZS0PFT4dYBSJ8PcOFAji3exLr7GE66mjqKoKK6M UZCbk+3Nfju465Y4cLh9JlcAddgNrin3PUESJsC43MfprOWnXszMEUNOTHizSWjX9opw N0Zw== 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=cxGINroCQF7ylHGBvXDyDGkFt/ZSO/xNGe3IRrNLV6c=; b=tsKDV4nLfd7bbz+OcPFM+S61s3W212i7mmFNZgPZjNIXuf2LzooVgBg2i+MkTLi6DJ nXFKNjOsHrVW/DCZQ4dqKd1N+iUNGWhimvtI/CFEKMec9tB3jdgFE+76SY1ngKaRjbDp kWYYv9f1RB/42czq0Wfc+jQZEP2JM8B86A4+BNbLiIb55uovzpfu3GSEcGHARqbqDNVi UdWxVkWNPljNXLOsQxvJRMhhqWA5eavtRxFdGYWZoTkk/c6PAh23RBn4Sztks1L0+jAf IMMOHNLJypkZvxN8rMdJHrz7O93QBIWK3rcpXXlfBTB3o9DVWcBF4Sv6hzFMn9VzediZ wRhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vDJPvEaT; 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 a24si34985834pgd.248.2018.11.19.08.38.58; Mon, 19 Nov 2018 08:39:13 -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=vDJPvEaT; 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 S1731881AbeKTDA0 (ORCPT + 99 others); Mon, 19 Nov 2018 22:00:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:60286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730366AbeKTDAZ (ORCPT ); Mon, 19 Nov 2018 22:00:25 -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 EE9952086A; Mon, 19 Nov 2018 16:36:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645377; bh=lFzXRpWAseJja5D1/SAvpwd941I1LzDrPVfDlFBaWX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vDJPvEaTMndo3im7tSXCfLQfw174LvGnyFfhCcqDfEgPp2leSOC5PgFFrKcGlk2uK P3BoHmaOlcsI2NoyF9Ck88GhGHJh8e0ffnqVjLjdEjmLYAEUgGfoU17GWFjpvGMcxz IERlwrdZdghnYqioD9HnBoQu5atZiAYM+Bte6904= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasily Averin , Theodore Tso , stable@kernel.org Subject: [PATCH 4.19 138/205] ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing Date: Mon, 19 Nov 2018 17:27:25 +0100 Message-Id: <20181119162637.628774239@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasily Averin commit f348e2241fb73515d65b5d77dd9c174128a7fbf2 upstream. Fixes: 117fff10d7f1 ("ext4: grow the s_flex_groups array as needed ...") Signed-off-by: Vasily Averin Signed-off-by: Theodore Ts'o Cc: stable@kernel.org # 3.7 Signed-off-by: Greg Kroah-Hartman --- fs/ext4/resize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c @@ -2022,7 +2022,7 @@ retry: err = ext4_alloc_flex_bg_array(sb, n_group + 1); if (err) - return err; + goto out; err = ext4_mb_alloc_groupinfo(sb, n_group + 1); if (err)