Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1146795pxv; Fri, 9 Jul 2021 19:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtJV9WgKCRIu7B1yx+UWm/G4bDp5PidHxGxE0hMKIRiutPRtAyybL3RJ3jcoL/bTirHumR X-Received: by 2002:a17:906:3e0b:: with SMTP id k11mr2830819eji.305.1625884212043; Fri, 09 Jul 2021 19:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884212; cv=none; d=google.com; s=arc-20160816; b=r/d/5AEWfCDTMPGsR4YIKxvltHEoMeO8X4A6PPkQXyDTvZX9K6ryJR809sFI4VEW34 DtwSLvOj0wt6DZdgNYmem/VjXm9lIq5HrMpPKs86PUhiAuQ7WRNv8WYwHcwU6CQLHLVo TfVtrJrESXRe6ZSozQYMoCfHBPfgjq+cdfGQeKlGNJ/zW4aKcSJmswqygdyI5YwbBFRh 1I7U0/4PIx73UW0tdjRGe98IH5noYI30jgSzQI19L+EgtNTmxCmDDOuyA0NczNVb8Nor qnXo3c7yY+X6A+m6f9cF65meL3DPR92L1NjPgYfSG03VUiUtucNjqhAKpbst7zB0/9lX nGiw== 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=mqYWcw5K4SqbGdsVTy0bjyGKmx0SSfWookguIyEo/f0=; b=WAXgcOn6vkuEs2QIngxotKe9B68NSaISZxmy5ZSaX+4RnuLZNXKsDz19jP3VPbmXrE 8yQ0NNP/7ekkMXw2eV7CIOz0ku7DZLxz51g70eV231Mp/17t1H5yxeKnx+kJEvef/aMh litAlwd4keDBhBmtvJkjSc+NGoOgO8JNj0rjkwyVMhVq5mKuVxPCnFtmz+dFsYVVz6ZO E1kOozV2ewoXZbHxMUsDpdcaiayR4wTlnNLOl238I7KIExeBIX6PIgY9o8+BsNUVlToM T60SDSftACHuVDAJCecwWeWKrChIoLjfAz1558DqSinVpqdBY7ky69l9w4XulCU7eFrD L5Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uOpVg/LM"; 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 y16si9143096edq.51.2021.07.09.19.29.48; Fri, 09 Jul 2021 19:30:12 -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="uOpVg/LM"; 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 S234189AbhGJCbj (ORCPT + 99 others); Fri, 9 Jul 2021 22:31:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:42628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233846AbhGJC2h (ORCPT ); Fri, 9 Jul 2021 22:28:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 45A9461418; Sat, 10 Jul 2021 02:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883911; bh=YpocWr17IC73lrDXfQ8pQR21WQ1hbjgFYsS/FrqkNUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uOpVg/LM/EY8w5ANHb4VvCtfCMEz6m10QOOkNQRYf+QVy/HBPmPxZuGNUo3iASLQM qC73CPwUD+ZVCinP8StERCz08s9U2qaCw7zMd46G796QzPr887MSW+cb1VQBIZcIqu uERlOt/gxzQjwIjewtUYKKBLS8lxywSJZ6XwHOSq4ood3jFWh0UkMhJWuI+6lKOwo/ tVZPhrDUnRPgsN0lKVPHcKwQB2q4/bDTvkhE/LosmIW40rcg0hrP+VtOgWh6svNQFF 7HNm6TuC/R7ybn33oQdr9pNGYtxMi+wZgTkCYLbDkCVh+NBlu4N9eG9pp30BrcT/fm JZd7/tUosuC4Q== 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 5.10 33/93] fs/jfs: Fix missing error code in lmLogInit() Date: Fri, 9 Jul 2021 22:23:27 -0400 Message-Id: <20210710022428.3169839-33-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022428.3169839-1-sashal@kernel.org> References: <20210710022428.3169839-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 9330eff210e0..78fd136ac13b 100644 --- a/fs/jfs/jfs_logmgr.c +++ b/fs/jfs/jfs_logmgr.c @@ -1324,6 +1324,7 @@ int lmLogInit(struct jfs_log * log) } else { if (!uuid_equal(&logsuper->uuid, &log->uuid)) { jfs_warn("wrong uuid on JFS log device"); + rc = -EINVAL; goto errout20; } log->size = le32_to_cpu(logsuper->size); -- 2.30.2