Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7444672ybc; Thu, 28 Nov 2019 17:38:43 -0800 (PST) X-Google-Smtp-Source: APXvYqx/V+6V5GJIMQHHOkSFVt3ZtK07HHvRED3tb+4XMHZ9du6zlSZm/ccWD0oV73rzEcVUDIOn X-Received: by 2002:a17:906:57c3:: with SMTP id u3mr58827515ejr.254.1574991523454; Thu, 28 Nov 2019 17:38:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574991523; cv=pass; d=google.com; s=arc-20160816; b=PN1al5JDsuwam3zXa81ef5s6MwMXRIwDJK3gUyQlWG1YsMCOeAl8YslbAlAvEcsXYl rbMGRdxGfzruuNOiLnO8v5fTD4MuARSrfGVa0gN9hcSzrbdZGCBU5LayENnNYmIca1ao StYpkMJBC3vdr2lSBDi+QI0c7qxE+HnpYxHk5eDxImFc7xQJ/dqFlRF7WntMbcSD9p/d SWdYJ8Kbfv8M5b8Fs+lOb4hfz0min19nteQDX23PMNjp/KAeVx6IKne+BXkdg1ia8swt WJul3LMA7CdwjydLLR6sjmEg3tgPJvUXXTV3qqbdji191cZBWIFxknNndg6m+D3z/7wm WxBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:subject:message-id:cc:to:from:dkim-signature; bh=6Gd+K7iZkeXmPQdKtVEkuM2BwhHSn2yjXqABVv19SX4=; b=L9EEetZRuQzM6PidpmVEwS3pHYcmh0WoOWTuATP9m0kYg0hFUpHCmxuc9GY+O/k+Du RmL3bYIXHCWcpZaqWEhSa3CEskKv5K7osVw5bbX0+iiU42IY3wowGl+RLNjhF2fyEmhT 4Fzwtq2cjde+i6+97++m0sExckajJKJo8pqsj+ucIVJwED0cskuCL5wLYzPw803k+6Uo GlMujYDGVc5/pJ4CtNJLbIFozd5orn1Sl7RiQBzTOGbuz2nNkDRQWN5AKB7c/2ygj7JZ CslkJToYdTTNrs2j1Sjqw+aqJ4dso1Nesu04n6ontKZ4nMLW8qEmbeQrvZ76ldaVvxJ8 5pNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mykernel.net header.s=zohomail header.b=bZ1gHvfb; arc=pass (i=1 spf=pass spfdomain=mykernel.net dkim=pass dkdomain=mykernel.net dmarc=pass fromdomain=mykernel.net>); spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 w23si6621597edr.447.2019.11.28.17.37.57; Thu, 28 Nov 2019 17:38:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=@mykernel.net header.s=zohomail header.b=bZ1gHvfb; arc=pass (i=1 spf=pass spfdomain=mykernel.net dkim=pass dkdomain=mykernel.net dmarc=pass fromdomain=mykernel.net>); spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726699AbfK2BhL (ORCPT + 99 others); Thu, 28 Nov 2019 20:37:11 -0500 Received: from sender3-of-o52.zoho.com.cn ([124.251.121.247]:21948 "EHLO sender3.zoho.com.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726696AbfK2BhL (ORCPT ); Thu, 28 Nov 2019 20:37:11 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1574991427; cv=none; d=zoho.com.cn; s=zohoarc; b=pYw/w8L5Mimngy+6F+rEdDl9QKmrxy8PKJmq4zZNrlCh8cq0Tyu3ZDlBg1Oqh0fRJ/GnOe08iUn7GmvsKMEcsLVviBjk8gqmSKXValF6dG+hAYchpWXy2YrnFZyXTZ4kpUsG5tXoyQ9czs6U5R2yWNjB3Rkwu/Azc+2RswRCTDY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1574991427; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=6Gd+K7iZkeXmPQdKtVEkuM2BwhHSn2yjXqABVv19SX4=; b=lEqEgnJtbJCuh2Se4G3v/l/9lHuJKV+uI7ArL6Y2CB7bu0SZjP9XQ9B2i760DdkXGKec3QnezSoG5f7IfK6P59y5xSsNuDQD7x2qkQ99cfb2QsXLQPO9+c/rvGiabMo1Pe99CHaLXPnf6csvsXsw5SX8G1qyOd4sgFjGg4mZMjA= ARC-Authentication-Results: i=1; mx.zoho.com.cn; dkim=pass header.i=mykernel.net; spf=pass smtp.mailfrom=cgxu519@mykernel.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1574991427; s=zohomail; d=mykernel.net; i=cgxu519@mykernel.net; h=From:To:Cc:Message-ID:Subject:Date:MIME-Version:Content-Transfer-Encoding:Content-Type; l=680; bh=6Gd+K7iZkeXmPQdKtVEkuM2BwhHSn2yjXqABVv19SX4=; b=bZ1gHvfbs8NwWxX+f5906/spLk0uuiA9yjag06XUDd6Opof6Hg+M+dNidu6qzPln KytxXGqHtovbOXJ/sOXuPc6jGGhab54lgzQjZ73mHW5j4/IrOWqRYDBUog626roZE7e bdF+B3ilTaWcFnQ5NC1oeaaMtiOgPGNX1/OqRyZI= Received: from localhost.localdomain (218.18.229.179 [218.18.229.179]) by mx.zoho.com.cn with SMTPS id 1574991425595539.8182833620485; Fri, 29 Nov 2019 09:37:05 +0800 (CST) From: Chengguang Xu To: jack@suse.com Cc: linux-ext4@vger.kernel.org, Chengguang Xu Message-ID: <20191129013636.7624-1-cgxu519@mykernel.net> Subject: [Resend PATCH] ext2: set proper errno in error case of ext2_fill_super() Date: Fri, 29 Nov 2019 09:36:36 +0800 X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Set proper errno in the case of failure of initializing percpu variables. Signed-off-by: Chengguang Xu --- Forgot to cc ext4 maillist, so resend it. fs/ext2/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 30c630d73f0f..74a9e3e71c13 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -1147,6 +1147,7 @@ static int ext2_fill_super(struct super_block *sb, vo= id *data, int silent) =09=09=09=09ext2_count_dirs(sb), GFP_KERNEL); =09} =09if (err) { +=09=09ret =3D err; =09=09ext2_msg(sb, KERN_ERR, "error: insufficient memory"); =09=09goto failed_mount3; =09} --=20 2.20.1