Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1151241pxv; Fri, 9 Jul 2021 19:39:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrSfBzBwTrExO8l6xz28e+FvVtXi3FkouPsT+MZo8VElADCr9Yid7ax7LZxhSVwDGagyq1 X-Received: by 2002:a17:907:1691:: with SMTP id hc17mr39928938ejc.382.1625884772774; Fri, 09 Jul 2021 19:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884772; cv=none; d=google.com; s=arc-20160816; b=0jZk1pBeO8NAUeO4hogAoAUQoyc5eQba6kSDVEgkpD946xjXajLErQXOAOjzl5nY5/ hz4JkbDmvCeSBIuEp1QVFhbd8x5Gd+Qf0wCHT6KsuOXloySPLJSlq/f6ES6fpvxH0YNz iOSpM7hXuE0ynh1B7YvoVTPUnA8JLQJ+Dz7RNdJZ62lPoR/72DwRXTlKYl8QOq8mQ6DW qgDIcjmUFEgx1l2PjOVYo4cRcqP5I+Xgyb4idhoene/X0wJL/TEk9yTngOrQS+9brr99 xurYxprHnuQTGmGB6Osz5e260iiY1HhNPwqaANu8fYK1BrPSH6zFLGfK5XpFHopNFXzv AjmQ== 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:cc:to:from :dkim-signature; bh=StoILwFQaA5mlMMpf5GPpEeRJcAtEu4EC08DfGAL2oY=; b=ejm8QQqZQP/86VerQrlWNt5221APtScXmPBL7qw9VxRRu1yBS1tWmg30rEZp0kJJCn JEEB12l+KJvUz6NCADhT8AQjyrr0OFxVGBUofuHCqIapOM7SHuRzMbuuPIPDrPUS83bE 0/9S7Ww+OEN+NrG8VBlXMxOgpgS8mMGX2E5+feZwBlcjqRyMFlmuJNtrg8WFMKGthSJB Zg80yUScXaIROD2H9ucuymCIKjwTSjmOVYrNMrFekBjM4+Fpt//SUq24N/DFRA82autD XzgOTUI+AzRtGu4x01bloUqALybyIV3ou+yv+MqvelO1jJ3gdXq2L618uYq2HjrHZybZ R7VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Btva0o9O; 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 m4si8892703eja.301.2021.07.09.19.39.10; Fri, 09 Jul 2021 19:39:32 -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=Btva0o9O; 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 S233090AbhGJCit (ORCPT + 99 others); Fri, 9 Jul 2021 22:38:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:53317 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232840AbhGJCfW (ORCPT ); Fri, 9 Jul 2021 22:35:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A1F00613D9; Sat, 10 Jul 2021 02:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625884339; bh=Q1c5JGV5YQnVsTvRoWkgxCNaBmJQ/SpMquTXLSKYiy4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Btva0o9ONgat297BO/cyUOz6TbYo3OallqNgXJ55T6VZV9qvfzDXnuVXK8kLiLhBb BlDYo0aMBqhvsBs+dQf5ZQpb/B+hwoRCGA4DBer5gTQo00nvUcnA01U7Z53YMAZetk Op6gbcgC8o31qd27uOevNIOuHLjj7CVrAhLbPbZGZycmAYO64cIggu5sRYem1TUCbz WCiTPRu6PQ8k53za5NCxM4LMrnHmdXNW5fSoA5e++l+JOaSRtD9EIcyb8SgAjM1G6t LLZKfjveZtGKvGe2PFtv+Y4Q2fA8FwZNc7MUFjxv4XjlZIUmPmC8hGTrsrggN4g5S5 3sXVxu0gdWqzw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jiapeng Chong , Abaci Robot , Dave Kleikamp , Sasha Levin , jfs-discussion@lists.sourceforge.net Subject: [PATCH AUTOSEL 4.19 12/39] fs/jfs: Fix missing error code in lmLogInit() Date: Fri, 9 Jul 2021 22:31:37 -0400 Message-Id: <20210710023204.3171428-12-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710023204.3171428-1-sashal@kernel.org> References: <20210710023204.3171428-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiapeng Chong [ Upstream commit 492109333c29e1bb16d8732e1d597b02e8e0bf2e ] The error code is missing in this code scenario, add the error code '-EINVAL' to the return value 'rc. Eliminate the follow smatch warning: fs/jfs/jfs_logmgr.c:1327 lmLogInit() warn: missing error code 'rc'. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Signed-off-by: Dave Kleikamp Signed-off-by: Sasha Levin --- fs/jfs/jfs_logmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c index 6b68df395892..356d1fcf7119 100644 --- a/fs/jfs/jfs_logmgr.c +++ b/fs/jfs/jfs_logmgr.c @@ -1338,6 +1338,7 @@ int lmLogInit(struct jfs_log * log) } else { if (memcmp(logsuper->uuid, log->uuid, 16)) { jfs_warn("wrong uuid on JFS log device"); + rc = -EINVAL; goto errout20; } log->size = le32_to_cpu(logsuper->size); -- 2.30.2