Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3201378pxb; Mon, 9 Nov 2020 05:28:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxauoYT1iBcx6UdqnlhVTmcVsIltceA1XtukaJtRaeqPfrvfLqtrR5pTANXHFY6/9k8y2IR X-Received: by 2002:aa7:da81:: with SMTP id q1mr15206589eds.14.1604928514483; Mon, 09 Nov 2020 05:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604928514; cv=none; d=google.com; s=arc-20160816; b=O2z90EC46cOpdpm26dM1MWgBTRIblK8fOzSFgT2o6+o5S/ybRIZ+CCqbgelELILUPb ZNy9nPEw3WyHq9S6stGKCBpI6jJnRsu0Y0uEc2TK1jlLgTgxYIps2lUNLk9M7LvGbwYB Q27gcqtn+Pi4VpxzGBE1x7bwgfLiYLroA2EJ8gqPyaEB0NnvjFBbMCCWJVDgbQQKKiRj hUGNqdKp1YzaD50JQ+6s4p+oB1gPQikIHqPhvSrluTMPNFDxLDomJnlcT+14xaQByX+L 5BhLa+NL9xQv6MDptAdVBXBQoe2Ml5y7xA+twRmGSn4TF1rkWlwW8imWIB8dLYA3rBnq P46g== 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=KGoZfA0fRw9ifdSO1D22m5uXT23ei1ZdTbd56JU8mUE=; b=ZxzoZl+60/ggkgzGGbJTH//P8aeiqB0iHXpGGKzEV+cA2jrHK1qzgP9h4UKsMGS+SZ CKVdbVzTkefx61uX7ZaZQ7kNrdQjO4wYqKDSLFwcPByUACYjymHZ/kpQUALUYsJZXH9t 3CrDUyQOFHBmTDsC10myvUtI1Bo4qKGYXti71woNHnNKhjW2hJKkZ7gJlPozfxkm7d/w uuk7Ebi9q7YUA7YYTYiZK+xAKaeWiDl7ZpFGAYp/lGslz2U4XMEN88ofaWHYgyd79Lzp YLs1feU2sBszh7vqoC2AS1l+r3Q2zt93VVRh3ypA1uBaai1TT07JA5LHMvO2kFbU2B6B WZZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mqmzzfXs; 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=fail (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 c6si7170449edw.204.2020.11.09.05.28.11; Mon, 09 Nov 2020 05:28:34 -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=@kernel.org header.s=default header.b=mqmzzfXs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387562AbgKINZ6 (ORCPT + 99 others); Mon, 9 Nov 2020 08:25:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:44490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387580AbgKINRT (ORCPT ); Mon, 9 Nov 2020 08:17:19 -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 5A6AB2083B; Mon, 9 Nov 2020 13:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604927838; bh=MVatacAilhO+2Bntap7TE5nHbElPRtVz6s8j24F9vdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mqmzzfXs+RFcGwV3AK90EL30x4tWpuJmAQXDSbCucN+zbd3sN6HJqwoAVSxOtWxJP VSUw3efw0PDd/kZWaU9KqIQ1lmHJduXRS2FE1ojciyGNmSvr6Rqf/zdvfNLG7xqZaQ fTTkCaH73plw1lboyuj7bpU8Rfypj18dPUgnWLrE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Davide Caratti , Paolo Abeni , Jakub Kicinski Subject: [PATCH 5.9 039/133] mptcp: token: fix unititialized variable Date: Mon, 9 Nov 2020 13:55:01 +0100 Message-Id: <20201109125032.591316307@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125030.706496283@linuxfoundation.org> References: <20201109125030.706496283@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: Davide Caratti [ Upstream commit e16b874ee87aa70cd0a7145346ff5f41349b514c ] gcc complains about use of uninitialized 'num'. Fix it by doing the first assignment of 'num' when the variable is declared. Fixes: 96d890daad05 ("mptcp: add msk interations helper") Signed-off-by: Davide Caratti Acked-by: Paolo Abeni Link: https://lore.kernel.org/r/49e20da5d467a73414d4294a8bd35e2cb1befd49.1604308087.git.dcaratti@redhat.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/mptcp/token.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/mptcp/token.c +++ b/net/mptcp/token.c @@ -291,7 +291,7 @@ struct mptcp_sock *mptcp_token_iter_next { struct mptcp_sock *ret = NULL; struct hlist_nulls_node *pos; - int slot, num; + int slot, num = 0; for (slot = *s_slot; slot <= token_mask; *s_num = 0, slot++) { struct token_bucket *bucket = &token_hash[slot];