Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp833375pxu; Mon, 23 Nov 2020 05:27:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9GnslDHGInWqSbHwNsH0dpCa/mVMeNiBhwpauCH4BfYmdAjS8MWtMkY/Jmk6oL9yvFT7q X-Received: by 2002:a05:6402:a57:: with SMTP id bt23mr44853278edb.62.1606138059111; Mon, 23 Nov 2020 05:27:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606138059; cv=none; d=google.com; s=arc-20160816; b=Xsbw/FroHhMWc/5aEaooNAxoXB91YxAtvBsQ1lX9/qLewqEBRBNbBYsO5V8h0+bVU4 XIQ2gkot/7dl6r2rECKqxMNUVQGnSL+A3Fk/xhw+fWWzzkRnAqq/GBoZ6W8dQTBxrrCE 8hEoGxBoItxft88u9mgkijEd15AQLCd3S6Pc6FjADL63CXGCTccQ0+O0gmvs1wTNabw9 H7odIOEdzshRb4jGT0eu9lDCEdCO5cJagvjQO8iRVXhgehZczxx2dRDzj6m1AKEmi/jp /Jt8JmG8sjC6gnjJ5MfNbsfsiop+3aHWfzrKibi07KmkNE+j0YHTunMQXgNRXvhw04Ym f8yw== 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=WeOoBMYBJGqavfSeNav2fi77aJQHcrZ0iloh5lSVs2E=; b=oMD6uYxK/uIFV9TUY+6IpU58luCwsl+HWdi2TavV5wvvQ7bAS0F55yBIrgaHTQKGt8 xf5m6Cu8p17Wk3aCBVZl33fuhB50s1DNFmTg/6M7YJryGKMQURHISJskphoo7E78gwcT XCqB/akZ6AnRpVewh1YY2WmS2UEKbcKf3nBcQ9WQVp3cBPuoLO8lHu0sEe69etoJZFlh UpMNeAqFqULBLqvUQTafM0ekSGJyUylNczjzqTmj0KK0U6RJ3zQTxPzUDJC9JBz/gQ/M INETgv8f1JFkI7lRuMgXDxYJ54VCPdNoHbrPXypvqcLbPPZ1A/a1BAYAjPOCv7oWeNh2 MG0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F85t0aeq; 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 j17si6274589ejv.267.2020.11.23.05.27.16; Mon, 23 Nov 2020 05:27:39 -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=F85t0aeq; 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 S2389061AbgKWNYX (ORCPT + 99 others); Mon, 23 Nov 2020 08:24:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:45936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731343AbgKWMeV (ORCPT ); Mon, 23 Nov 2020 07:34:21 -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 6349B2065E; Mon, 23 Nov 2020 12:34:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134860; bh=kaF582cBM+nvJn4cyN3SoAWdQaMfo4i0FsCkcsX+aew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F85t0aeqWgN85D4Pkwz4wjo035kiY/5mCr/jUnFu7aPlNKFBEg20A0C/Nc/VT9mLf yjsSwnJJn97aOBaNrbPUtdYLYs8AbGm2SefKkdC6LVDBdWM9rHSmqjNqQhekwvVs+N YIO5kbZq7QoPq3KkZpN/SFo3ePkqwub+L4Bj1Ezk= 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.4 017/158] netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist() Date: Mon, 23 Nov 2020 13:20:45 +0100 Message-Id: <20201123121820.767947494@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@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 @@ -1166,7 +1166,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;