Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1905373rwl; Mon, 26 Dec 2022 06:25:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXtHHFhML5lMWUJL3nePJWLsmxJHcdQDrJNfO+N6YsZ5e59B8ne6UucW7wp5Z/zUPcMlpoK8 X-Received: by 2002:a05:6a00:26ed:b0:566:900e:1da4 with SMTP id p45-20020a056a0026ed00b00566900e1da4mr17083455pfw.32.1672064727089; Mon, 26 Dec 2022 06:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672064727; cv=none; d=google.com; s=arc-20160816; b=0UtQg+BOx4H/hgWQra3DFiVZuNYexcur//5Db6LzNiqXDdOpZLZJ8d/pv79/xpVfh1 erpIenDXPMgQ0wi9ryfRPPKmV56fs9xOMs90HfBgFq87c8r3fXGUu2Z70qbPVrt5qyGB pSbSRY9C7kOq2+KOuMohOVxdJPgCQTLVIE7K435mNl5xYcR+C79Ykw1Y5xByw4MOyDEA EFDJDrJGsUDAf1amNdGrxS53g+1vLnyPvmeSZuoO8Eh/0VaThDOHAUWorvBhJqVOyFkj N3DII0Upz2evsH6vT3YsnyYCPmo7Mkh0M40BJjj62vqkgHzPj6qmxdcykO4VKvwHXN+T FrvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ceu7rm0zpGm/GJmhTlhx/aTfbFxYH6EaTcvQWJG9vJc=; b=xQ4LNiyJF0rDbRIhtLOaG0GEdaSjlUgdLMUeMo6CdBIu4TVbfE4Y6BNBKdTlEVSN9o eQuBKc1vQB/ZZTMYppP1bh+IoAg1Ypx2D/g0+aBzFtDVvZbyBKM/EfgzMQi4H7qP1604 y8zOxro+lXqFo/zyWDGaUIqjOgu2aqKOg30CXJd8nNRn19EnmkaVm6q6QsGXWaH7Be5V webeEgUnn7zoE3lMBTI7s3QScmGKKr0Wf3DBhPBC9ofjL6O0aZewtdzyahX9sU8SGGKi wWMrEA+hRke60dBgfs6XQOUOTQnzrBiGg0JDFukpPLjRU5QqEH4wX2G2ZM7QOlavWkv3 NBdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ITEyGudT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a056a001ac800b0056618176fd4si11897364pfv.148.2022.12.26.06.25.18; Mon, 26 Dec 2022 06:25:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ITEyGudT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232299AbiLZOXE (ORCPT + 66 others); Mon, 26 Dec 2022 09:23:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231937AbiLZOWK (ORCPT ); Mon, 26 Dec 2022 09:22:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1A295FCB; Mon, 26 Dec 2022 06:22:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7D3D560EB7; Mon, 26 Dec 2022 14:22:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFEEEC433D2; Mon, 26 Dec 2022 14:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672064528; bh=n/8YydJ79H6S/fefunn6cS5wD6zvjrcaM37T3x4SMFw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ITEyGudTisy0cXAFBX6UA/0uO8IzKYmzwqZmTQfwsyU8qEjXxS8veri/7DHQtx2gE f/tC2MgveyNb4XnH2FXKEdpsxvf0aRkDnVAxTWvupN+x1TjHuDV6d0thwMxGap08hI mhkLBcN4s1dGvBHaM8AXziWJmTsKjlGE9eh2yuKx5056rBktL8OPI2ahK0J/RATzMy kGSGHNn/LeVBL6ZSVkSWPT2pK7fVoiDv9f6SIEyMjV31bk5PW1uuSNMvGFGOp5s8mK orIdD72HFP9XOkFHttlHqr+6DnRcNYGpQ207uuDc7fQtdj4tK2WM60BdcScb3TW3Bv Ne+0cPnSDicFQ== Received: by pali.im (Postfix) id 7BAC69D7; Mon, 26 Dec 2022 15:22:08 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: linux-fsdevel@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, linux-cifs@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org, Alexander Viro , Jan Kara , "Theodore Y . Ts'o" , Anton Altaparmakov , OGAWA Hirofumi , Luis de Bethencourt , Salah Triki , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Dave Kleikamp , Andrew Morton , Pavel Machek , Christoph Hellwig , Kari Argillander , Viacheslav Dubeyko Subject: [RFC PATCH v2 07/18] befs: Fix error processing when load_nls() fails Date: Mon, 26 Dec 2022 15:21:39 +0100 Message-Id: <20221226142150.13324-8-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221226142150.13324-1-pali@kernel.org> References: <20221226142150.13324-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ensure that specified charset in iocharset= mount option is used. On error correctly propagate error code back to the caller. Signed-off-by: Pali Rohár --- fs/befs/linuxvfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 5c66550f7933..8d2954e3afd6 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -913,10 +913,9 @@ befs_fill_super(struct super_block *sb, void *data, int silent) befs_sb->mount_opts.iocharset); befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset); if (!befs_sb->nls) { - befs_warning(sb, "Cannot load nls %s" - " loading default nls", + befs_error(sb, "Cannot load nls %s", befs_sb->mount_opts.iocharset); - befs_sb->nls = load_nls_default(); + goto unacquire_priv_sbp; } /* load default nls if none is specified in mount options */ } else { -- 2.20.1