Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1235212pxu; Mon, 23 Nov 2020 15:31:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4rL5mHKI5r2p6JjEiM7NOZLTg2datvMnjNJ+PuOdXvNK4IwIzvTi5NsK/F7KaTKfvpKeo X-Received: by 2002:a50:e0c9:: with SMTP id j9mr1566775edl.380.1606174288706; Mon, 23 Nov 2020 15:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174288; cv=none; d=google.com; s=arc-20160816; b=Q+6EYsvx3/GPRz8T7hNrxWGnFIfVB1a/3HtrKWGhh2P9RtHvc8qagw8Xq5uASfy1p4 hs2nl20lXG5POFS1R55SF5opxVYUupS/03UY4+fM88XbMDkeRMTrzg9S8PVDb5b3d3Nv 2SWHA2tI2rKGUo4B4Za1LfBD3W9gSdfauRt/CBmWXvO7bdok5T27DUibFV2PEWZnq/qp qm1x4QNGrNkXmso+UpH/P1y5xi0kbj6tHso5fhQMpxn8EBTCPaymTDyhUm0yXKDunobz Opm48s6FUNROk0DMq50nQAcCfis0FEdD2jpNFfkpt/gAesxmnt4/2Ym4vGQy8OlQWdB1 dtCg== 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=hibJvyW7Gpebu6Z5wvR1j82csv03UdjZtcRD+36ddY4=; b=RzT8C5Wm0f+AKWkOvup4AapioouzsTkSm2EqngCMlbJ7tjwB0rtDxQSdiXEKyp913I at2HdLNgOiGBAncjeiYU6d2kIu1NGzjb385111hzRhoJLUuQiB35M84f0iYyCI7cuANx qAeLsHue59wx9249yEARMDyAZXGFNUQtlxcCiODAkjSic/Qc4JxH5dLpflehcWl2fHyl g8TcNdhADcasDRWCDsmq6lPf93dPyWAQ7GbPqMnijgxCwsd+7oAAmezMUn8kLxBnx/Bc HADsxUsho/EhftvEjB76gJpPfDT53LSZJbFIatG+J2G1ZhhjAXNtMo5vYcd2wAMmyjqY VT+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gK+rEPTN; 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 bl4si8431330ejb.79.2020.11.23.15.31.06; Mon, 23 Nov 2020 15:31:28 -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=gK+rEPTN; 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 S1729802AbgKWMYd (ORCPT + 99 others); Mon, 23 Nov 2020 07:24:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:33934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729804AbgKWMY3 (ORCPT ); Mon, 23 Nov 2020 07:24:29 -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 1A51820728; Mon, 23 Nov 2020 12:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134268; bh=ADGkb+SO72BS0tmY1VjDC9/Gno1LDlpZ7+sdqblBlKU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gK+rEPTNtdSQsb4ZU64imNA9EZxpKqhDwTNrsUsK62YaZBxnUKS98MJr9LyXje/Pi 38dNTMyji4M1Hc2ZTXQDcH4LTZt15IMHp/hFyHFJEua0z3fOBLE5PwxqpsWil4PN/r 0lsfokxiHqKgByAnXjpqPilBWIAqhFvM8PwXZvu4= 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 4.9 10/47] netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist() Date: Mon, 23 Nov 2020 13:21:56 +0100 Message-Id: <20201123121806.052622284@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121805.530891002@linuxfoundation.org> References: <20201123121805.530891002@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 @@ -1186,7 +1186,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;