Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9046294pxu; Mon, 28 Dec 2020 05:19:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDRf6RWYfKFeF8ExrtGqiUf+s1ayH1GA2rEvHSXmKpCVvN/ApK/xR8IAR9uLW85MvyIsv6 X-Received: by 2002:a17:906:158c:: with SMTP id k12mr23984506ejd.119.1609161574877; Mon, 28 Dec 2020 05:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161574; cv=none; d=google.com; s=arc-20160816; b=Nf+dqQn0bLbXU1PUzcRufN5TdjScBRyQJjEG504WBAiZ8cREQM4ljzXeQan015IArL zTEGXaIN0jE+RA+j+IIZ6uWtCEPkbEt1gYIi/SsjsMrVmpUjAEwhnt06wjx8JIm6Cq+3 M5WoxNZwVjMCFQCpWZoYIFnZ5y14QmKq5DZMfdV6/B0GdTlxG0HcG05zVqNxXQWUQpZW BmjePV0I/9vTwYr9Uw3Jq0tZYlbiwuB2v3Gs+qgsffbRVzFyLlubLmuRFmS02F4HkDne Ywcz2QgZINkY8wGHm8Ddb+46k6YhbMXGiXSA8dFoT+62AnhFZtvziy1eJ73nIK0Swj03 zHfA== 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=cKeSqu3X2Mpmat/75vNYJLDYy9rTIySpAop0v9BHzVI=; b=c9UPoxHsErco6vQC7Nz/qbZIIKzPrqOXVu+phSmFq84tdUBEK8hlu5dmfVWbLG1oA3 gTZh8M8/K7O54aT+g3sJHugCvhtZXJocOO+Qgy96K3TZmLCb3+HbHrmxbaOF+M8qWXQj ac2pO5x1ZO/wGOvSlwZQHlj1VgFRHazGfYijxufUV/kst/mbGN/KhUCOqhZY4TInnGhj QNhEfeMBIakJg1H0+nRH4s1LZj8tvtDmX4rFVbQkulnltxAW7cCL0dKSZMs6oEjRKIRa 7HBCNFqUVG6GvphZrzffbNH/ZsYAJUxnGYoAa3/SEAy0iKGFXCysPmbbunazXYGDnhhC BZ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ztpshACC; 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 a12si21251541edk.285.2020.12.28.05.19.11; Mon, 28 Dec 2020 05:19: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=@linuxfoundation.org header.s=korg header.b=ztpshACC; 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 S1731527AbgL1NRP (ORCPT + 99 others); Mon, 28 Dec 2020 08:17:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:45006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731523AbgL1NRN (ORCPT ); Mon, 28 Dec 2020 08:17:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B2F520776; Mon, 28 Dec 2020 13:16:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161417; bh=p666qLicgP8Y8aG+ATTzgbNunfD3U0QKrETk7ChM4zc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ztpshACCYigSffn2j4t/vXW7y82qf8KW4dsVwCy9ZxEWgdpQ3IYk30E8Ouka4pBze q4ly77S/e5Rjng8mEUDTbtHWNtp739LkFQqoHwz+wEJe+HagXANt5x7Fzf0THdE+Im 8MapUiQxwIGlZ7+Ty2Ywo/RubO8m9PPBei2wvdQI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sara Sharon , Luca Coelho , Johannes Berg , Sasha Levin Subject: [PATCH 4.14 177/242] cfg80211: initialize rekey_data Date: Mon, 28 Dec 2020 13:49:42 +0100 Message-Id: <20201228124913.403638637@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20201129172929.930f0ab7ebee.Ic546e384efab3f4a89f318eafddc3eb7d556aecb@changeid Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/wireless/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 6bd4f6c8fc2ef..f630fa2e31647 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -10969,7 +10969,7 @@ static int nl80211_set_rekey_data(struct sk_buff *skb, struct genl_info *info) struct net_device *dev = info->user_ptr[1]; struct wireless_dev *wdev = dev->ieee80211_ptr; struct nlattr *tb[NUM_NL80211_REKEY_DATA]; - struct cfg80211_gtk_rekey_data rekey_data; + struct cfg80211_gtk_rekey_data rekey_data = {}; int err; if (!info->attrs[NL80211_ATTR_REKEY_DATA]) -- 2.27.0