Received: by 2002:aa6:c429:0:b029:98:93ff:f56f with SMTP id g9csp3389599lkq; Mon, 23 Nov 2020 04:35:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwATeFmUiXQj49dkZRCgPHMH9sf1zO1a1DtTWt1L52seuQz2HVxne3u4K5QvdUwEykIWyJI X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr47005606edw.294.1606134918294; Mon, 23 Nov 2020 04:35:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606134918; cv=none; d=google.com; s=arc-20160816; b=Ex46vWxOX5r/P7EQc379wwN0ljdi8o9ALAjYuxbWxNRnL9b/OMiU5I2F/gS23SgPXv Y8DjqfzlAbnBRk0r9neEjLqaF6efxV8UFpBakc2lLPhLPA74iMf4teLPK8QTfQ8oCg4c 4JT7WUH6r2BuGcGeygjZR9jb9oF1qvOGIgz2q36W1Eg2QpqH3LITHLD+a4+DsmBLs6Ya eAdaePkxMyH/vgdoiD7znBkndPfJi2ghn+tM/BX7Tosajw6IizaU+km+Wh4Cever7xYf AZnmbNN9Qx5viBqw4vCPg04J4ztZEmhNLV8TLwVbIJcpl++PWupBFp1EiGMiTNbUtPiB NXsA== 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=ncEyxzXclCpK+uqWWyq8LztKySjOU9q0zkr5MNEwVig=; b=Zc1xBS9Dsas3k1d2Am2fn8kOL6AgTBbSwIYAzWvLdCT1MJUIRZW05BwLBXRz+zUHf+ 1/GTIWuVekqn8Dn0bQfPj1aLZ7bdBK2lv1W4xdErwP6K03NZHoUWYAPGJxx/pQLksOXc CfUBaS8a06DHIEk7othaIfaBpja9+Evihr5CKI+xuB7CJUTI15Zs79p1DRXS7//q8slR SXHewE61M9FxEaSp88ICcy8WUxfIUZPZylPqNfJbdyZ02MmYR7+yCZBIra2L3Vpn9oWe sesxECIMZvR6jT3bswCWhI7RXnHCDhCyf5XmUCjZJLeEMfD8ZmhvSlcSSmG5803CvVkj KAMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ynPgI7uL; 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 t5si2416631ejx.124.2020.11.23.04.34.55; Mon, 23 Nov 2020 04:35:18 -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=ynPgI7uL; 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 S1729829AbgKWM3z (ORCPT + 99 others); Mon, 23 Nov 2020 07:29:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:40374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730653AbgKWM3x (ORCPT ); Mon, 23 Nov 2020 07:29:53 -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 7F34F21D7A; Mon, 23 Nov 2020 12:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134593; bh=Q1TdgDXmY1kSWooOCJWJqG1UQDpxrak7pKjGdM5pMiY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ynPgI7uLVLn4BLtusJroVYtjAgy0CnjsnuUl6xtPkqxmhvZ4RDz/3OyP6D/GKmMdv +001xzzcI/nmlQgWnz8ThFXYxNYem71gPJ0NfFUIkUNItlEudoCvF2ilCu9a4xeY3c qdQZVkX97ALMvPjRhg2esWpPJSiFd9k6CVSGfBQM= 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.19 14/91] netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist() Date: Mon, 23 Nov 2020 13:21:34 +0100 Message-Id: <20201123121809.995006720@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121809.285416732@linuxfoundation.org> References: <20201123121809.285416732@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 @@ -1180,7 +1180,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;