Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1144581pxv; Fri, 9 Jul 2021 19:25:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRa4hXRViDJjenO5+jQrQQG9UUC/5NsRRiEsAtrYdpAFXHHAevzDqArjTDO/tPAxhFrklc X-Received: by 2002:a05:6402:268e:: with SMTP id w14mr37887220edd.81.1625883928048; Fri, 09 Jul 2021 19:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883928; cv=none; d=google.com; s=arc-20160816; b=Sd0OiE/TLqwpBJXiQnBAWP2B34v+nPl7Z96GgIOK2ifuVOs/JpP31yvovil7LOTew8 BKgVEBoad1IMXeippZGxCIz3eoPZIOgGXSRoy68+taDRhhsi8hkTXK2phB8zhZnCUlrS R4NIFPMhqvN3XkzwfugHaAlYr8RM7+ZerEXoo8MKsBd0+CMXk2lEC7PjWyiHF4cwpsk4 G8SrhzrzXQCwnA+w2cV7BxcrXcONZQA4e4IiBB9nNtECqbUG6XQAyIIJVVMNwkLCHEWo omea0ymHWgknn2PrN6hseEpiFIUiSi1uYVsA/dKJmHylBOMDxdoYbpxpCd2/vOpwnWUw ef/Q== 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=pjmhZ3HmGHJDZohXC5XcLRzHNmsaNLhhfKZxBSpFatgr6RQ8vskcDSurALvdVsNdw0 KyB4O8qWa9l5qMsJ+hf81wOrzj2wHlHI6mTs1ZJ2iGiV/SySW4JwWlBVI2gQscq5dC/G 22qkd7ffBzcxJuidtlhMkk4wL/sI+jicVbjsDIEizozExFAFYYUJRxjFbV45HWtYXwug 6g8jb6ILFwrWHbJRj6npEgQCb+fCnrYDSgSeUGgXi1NZKu7L0zYk0viuysB3Iibx7Ucn JJewpeDlJuGQx3wETzmR4dYXb+71sTz3Q4J8oO4voG9J6nRAymF4qpH7yEeLNLxwH89G Mgig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LMv9fB+F; 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 j24si8397715edq.12.2021.07.09.19.25.04; Fri, 09 Jul 2021 19:25:28 -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=LMv9fB+F; 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 S233480AbhGJC0O (ORCPT + 99 others); Fri, 9 Jul 2021 22:26:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:42542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233040AbhGJCZ0 (ORCPT ); Fri, 9 Jul 2021 22:25:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EE9A7613DF; Sat, 10 Jul 2021 02:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883761; bh=YpocWr17IC73lrDXfQ8pQR21WQ1hbjgFYsS/FrqkNUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LMv9fB+FCSPDLk+EVWIkJg0TeWVM9xt1BlMj1NObKdROWZM0fJ/7QqHkBc6r63Pqf mEXUjNS48YGCXxcxLWVTKPxibs8hN8ZD52TLegR4+pMy/uQh7MSxMOyERtBu61Xc/W kUQzDGGnI4tuXqS6dMMkKdVmCpW9/lxRoYxlytYtlY2j1NRNgNkute4oe535EnnNRh 3EKmB1P8yXgFYEQ/THqfEQw4a8zYdJTgfY8LVGcIZ9gWkTMwyp/cTCWf6wwKVvM9b+ qvAZBKwVv0HGKlHZDjPm+iKX4VBcnHVHpCqFXeKkLpTED4v6/mDPBiahGynASoHpfc BBNq4xFZ8wf6Q== 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.12 035/104] fs/jfs: Fix missing error code in lmLogInit() Date: Fri, 9 Jul 2021 22:20:47 -0400 Message-Id: <20210710022156.3168825-35-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-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