Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2041387pxt; Sun, 8 Aug 2021 09:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkl+2Pvb2cYO7Q0GuWjTGbhoL2P1z8OiBvcwCTekks0Ov+wIqf6abitQ/rIvwOboWZddJL X-Received: by 2002:a50:954c:: with SMTP id v12mr24700873eda.313.1628440205253; Sun, 08 Aug 2021 09:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628440205; cv=none; d=google.com; s=arc-20160816; b=btrpwUB17RnoHeV1oS72PpMj3G/SM+Ub7i1CxdvRJs8Im+ImauSN/947jxsxrWls1f DLn4qqF+2oPEIo+iLo5pQPbiXOGGuVzlFGGEUeL4GfjnbN2ynwg6A62zHNPl+PxbYkwu rozIDC/3cM6XDfA0A9e7k7S87Sib2n6mzC5g9VSTLRl/GrBJIQ2uU9IoUQ0qv/J+7f2G 0D6dPXyo4TDUQAlUGoZW9UdpC3OfJCH3n1VmSWTc80Gl12cmsB8CLC2Y8XYiAKPoKAuS uwkEjcMaR0npTo2wIr4MfB/Jrjkovy132bLmCcH/GE5Uo+hL23WkEwvPhbqYpZXhqmR0 oI8g== 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=HiHEaNv1AI4jZjx9dKrdMTfo7CaQP2WvqWE4zFTkSJ8=; b=n80csMkildP2FUjSzNfJF+mBlgOvUBSWFtmjwSVI1246XLtEZwPdDCPw0PvaV5iwkt jz3+J9AFJENW27FVBVI95A5yz33uC0wk5k2PL/gN6blMvy7XOgn6MIgc+kwDvs2dCP/6 pOIRWIxwREfDo4Y86UjXWoM8tGaJk/jz6Yr3oMZmug70x/LJ9SihmGYSB63X8weepOFY JYowhpWTTVwsT1d2sNugR7hkyk2UcEWRqEkrBnk7cEPvb0P8HNSfkJsruTkIZtGVVn+p 4aiCDVw5U1zsQ3ysALJqHZrO4r1TPP/MekxAwGwMnKVJt7bTtQ8HfdGh7Ookyh7BUf1o Xxlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AMesRXMc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb13si16185150edb.420.2021.08.08.09.29.40; Sun, 08 Aug 2021 09:30:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AMesRXMc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232634AbhHHQ0W (ORCPT + 99 others); Sun, 8 Aug 2021 12:26:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:47508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231859AbhHHQZg (ORCPT ); Sun, 8 Aug 2021 12:25:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 478D9610E7; Sun, 8 Aug 2021 16:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628439917; bh=xmLXv5i7UZvG04SFDJpgGHD2RFkBzJD+zP5l8qNjoBE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AMesRXMciqTy9Z+x+pnrhCk8JGOS/orqjtIWJcARwaLKeo6rCnwvABVawy59SFgk3 58vuidq58/vYYQVZ+riALGfKfsJIS5PrE1PjmxNL+rwInsZcUzEhOTDlAux/oGtpUo 4SqVdxzndy8XgVRDYzPds6thgt7O0V5uaQG7dimlyktHJLz1fqjGbJFm8+MShhiLRN NJh+EfeSiMGjOdn28KEE4QID6GsT5oUYPjAsm9Y50PblNrgSYR5U+wm8vfKtOu1lL5 BVC4WyAZlmciw14uVn4tWe23S14Z4WC/tgNVFGFO/RBJq7f+s7/seeKfpKqU/oGWpk yHIzD0DrI+5AA== Received: by pali.im (Postfix) id 0316F1430; Sun, 8 Aug 2021 18:25:17 +0200 (CEST) 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 , OGAWA Hirofumi , "Theodore Y . Ts'o" , Luis de Bethencourt , Salah Triki , Andrew Morton , Dave Kleikamp , Anton Altaparmakov , Pavel Machek , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Christoph Hellwig Subject: [RFC PATCH 09/20] befs: Fix error processing when load_nls() fails Date: Sun, 8 Aug 2021 18:24:42 +0200 Message-Id: <20210808162453.1653-10-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210808162453.1653-1-pali@kernel.org> References: <20210808162453.1653-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 e071157bdaa3..963da3e9ab5d 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -914,10 +914,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