Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1143661pxv; Fri, 9 Jul 2021 19:23:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuYhbUWACuOLHpB68ZTIJB2bWVxMJXvKAOfrKDQNi/MbXhKdbqMGGZ2R4ev1ZoDbSCjMBt X-Received: by 2002:a17:906:53c9:: with SMTP id p9mr41146263ejo.419.1625883804444; Fri, 09 Jul 2021 19:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883804; cv=none; d=google.com; s=arc-20160816; b=pqaanO/MTPakZV8iGfSxdQ7v9GxRJVUvdOPTkcYuW6YDpnqkcdsfSdBeSo+ivZghui WAMQavIehRAQ8qxLK20mUSwMQsPSvXOleHSPCsDhgXZLDCl8wTt+tDQxgQ+Nl+PYcvWG FSy2hc7iP9WhiRHMKW2crSiSt7a1EV73IgeijOmNk+ODnmuJ6/0QNFoWwb2h7cDcFRfe 6bIAvA3i98UR6F2kmU2fYZODF58vAbrLpMiOmaNmPX5bwgbcptpqlLg+5ZlCEpqGrI2U yElc3YV1V3B4y4Nk96CKpVlngiPcBFyND7ruxlbtaGzNsYln8H3z1zxXT0n+Auo6tZTe uezw== 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=M8OMNj2mpnU97HtO9Kc4Jb4CLQp9ZmwgKVbZzaLZSn6FHLJ+cg0neQY2jo58849Y7z afV3dK4nOdBSMzOujoAfoPspZ1bI57yWjvBuFU46VfrGR6Rb87cfKJrhS6CDHFCWKp89 OPzeKTvkNTLmoibTg7RUCPf0pwTl6C6TWluYJhxWcADDPtDdqNK0jsRUc2R/tJA5RPCl ggIpui7Rpo7Umq129iv4ona/liV7ftEJ3sf9tx5js2SsB+Tfzm9zaFCanyNNwjPtQEDn 0bMp6JkVtOUmzRqhVmpOhl2gZKdg35AXltWkIJMkw7e5nihTLzf21/RP8JnNg/pj8cS/ 0/yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kuDEApqm; 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 w9si9669064edx.175.2021.07.09.19.23.01; Fri, 09 Jul 2021 19:23:24 -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=kuDEApqm; 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 S232731AbhGJCWD (ORCPT + 99 others); Fri, 9 Jul 2021 22:22:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:38276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232158AbhGJCV0 (ORCPT ); Fri, 9 Jul 2021 22:21:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 521A2613D9; Sat, 10 Jul 2021 02:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883522; bh=YpocWr17IC73lrDXfQ8pQR21WQ1hbjgFYsS/FrqkNUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kuDEApqmm6XL6euNrFEOm1U2p+VAxcvzXTOWgjDMJy5doFqEEPUqUr1nFVNli3Q10 iah9Gs825tXXecf7uBPnoCAR7Gv3KWraVzHkvj6RuDUjyIyZICzSHuzQe0E4OvsobH KKPHbpp1jblubJqPN8Qn5Mv7cfwYpWrAMG1hE/M1SrugQuY4T08u7AjojkcGT4dUsR ycivKpyUkU9HLxFqnayQcNxoiC/mAUYQjf6PixZBR67lHFn+BMb5HjX6wwk6ToY0Tx ykxvAQHXez33t9b9evPRummnNP2BdB62AtXCa/16rVS8LR6/pOBueMTrNbZow9nJzk 6ZJA/sXFwjEyA== 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.13 039/114] fs/jfs: Fix missing error code in lmLogInit() Date: Fri, 9 Jul 2021 22:16:33 -0400 Message-Id: <20210710021748.3167666-39-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710021748.3167666-1-sashal@kernel.org> References: <20210710021748.3167666-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