Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1322979pxu; Mon, 23 Nov 2020 18:30:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzD1TX092cV39860MrEVRb0HBS3qvCw29Ieq6j5+TX/UbIsZJ4JfFi2pt8+6XyI8w3Onlwo X-Received: by 2002:a05:6402:c8d:: with SMTP id cm13mr1914572edb.340.1606185044131; Mon, 23 Nov 2020 18:30:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606185044; cv=none; d=google.com; s=arc-20160816; b=JId0g+WRCOl7t1eWNJnsEzdnToucE9S5xo2LtPPL5HqIDHuZvnC6HvThjzcH6t2eKS spQlYgO2Gqx7gYugDy8lx9XK7FXzBDb9MOTH3kyF/vrq0EnMR0NU3kTo2dOKtc96Dg1b oCbk5cP69KxF+Bo+YKgoJ1Dysg33KZIJ7BtoOb86fWaMhX/zV1Xm80/1YlQnKBJMCjbN DY+BnIytQ5uKIgcDZ4TRqDgtrvCIJwpC6ZwTVENmc7lp2uZ3yWUDj1PD4AMaYTah48jk XMbDuxg8V9C72YlfLwtnH/20EjLnl/qj9W77imvVRJJbwvD84AY5Kb+HcrhPv6OARNOz Y4Yw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JHr37ZBD97a7TzBGTDvEueQkQWzIE7UpBoZrb56+WhA=; b=ZfRK+j6Zau5LEZVLRUHMRy6eH4wt679iK/UfBfia1tzifYa8jH+ayHzXSZph4nQXeb tHLaLplOG70vFyKc4LYBC++Jesqg33sy6gjf9ZgxrsYpWpnMZpH08O2aNuPrU4Rg48QJ KW0/YuD5VSfquf0tmPWpYvS86p3RLJQn20I628ofaJRgx9QK1V++gPpt/qjgTCdTcEYw f/II0WMOfY2R7F0FSns/YUBMiGmuT57LVieNlqlkcoFzGX4m1+7ltxX97dv2uXixCrVh HOOOx/qQCtD6V5RSbhsckZ2tUIzC/g3FNSSESH9X7qBEIrbTbc+TnuCuJ1LQKKTu85g4 6qdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Tw/f27jL"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd28si4989861ejb.474.2020.11.23.18.30.02; Mon, 23 Nov 2020 18:30:44 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b="Tw/f27jL"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732993AbgKWMmz (ORCPT + 99 others); Mon, 23 Nov 2020 07:42:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:54978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732800AbgKWMl5 (ORCPT ); Mon, 23 Nov 2020 07:41:57 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 42C7C2065E; Mon, 23 Nov 2020 12:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135316; bh=Um/R/6yDgni+DjozbWiHu0ugZVsECtlKbsWk1osqHLk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tw/f27jLI3KtfD4ilVv63c2CRAeLNQzZjRoexmYi2vGukal3UHHOyl6670RIod+Nn 9rZCkWliw8a4sVSA6ws75kq+nWh0IvxOsSpOr21WoHpI5b+LgPlpRm8Xhu/O8Mr90M kuIuX8P/FhW6eMhbO+13jnDvfgQ/pHLRfNi9IEFc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Paul Moore , James Morris , Jakub Kicinski Subject: [PATCH 5.9 025/252] netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist() Date: Mon, 23 Nov 2020 13:19:35 +0100 Message-Id: <20201123121836.812765945@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121835.580259631@linuxfoundation.org> References: <20201123121835.580259631@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Paul Moore [ Upstream commit 1ba86d4366e023d96df3dbe415eea7f1dc08c303 ] Static checking revealed that a previous fix to netlbl_unlabel_staticlist() leaves a stack variable uninitialized, this patches fixes that. Fixes: 866358ec331f ("netlabel: fix our progress tracking in netlbl_unlabel_staticlist()") Reported-by: Dan Carpenter Signed-off-by: Paul Moore Reviewed-by: James Morris Link: https://lore.kernel.org/r/160530304068.15651.18355773009751195447.stgit@sifl Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/netlabel/netlabel_unlabeled.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/netlabel/netlabel_unlabeled.c +++ b/net/netlabel/netlabel_unlabeled.c @@ -1167,7 +1167,7 @@ static int netlbl_unlabel_staticlist(str u32 skip_bkt = cb->args[0]; u32 skip_chain = cb->args[1]; u32 skip_addr4 = cb->args[2]; - u32 iter_bkt, iter_chain, iter_addr4 = 0, iter_addr6 = 0; + u32 iter_bkt, iter_chain = 0, iter_addr4 = 0, iter_addr6 = 0; struct netlbl_unlhsh_iface *iface; struct list_head *iter_list; struct netlbl_af4list *addr4;