Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9179940pxu; Mon, 28 Dec 2020 08:33:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqyLTVDZdV2S3supYzFZ9k98btAZ6XxNDu/z0xMRwIqIJeLInw2SbhzlSuafQ6HB8V8/UD X-Received: by 2002:a17:906:cd06:: with SMTP id oz6mr42683033ejb.25.1609173237372; Mon, 28 Dec 2020 08:33:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609173237; cv=none; d=google.com; s=arc-20160816; b=dxjraCjrxHBoytMFZtUXrAqcB0jDATgW3647J22FMl6lI5Qt746/duZFI/8evJqawu k5bRU6OQQHuzOgOpfIHQzYY0gI+hMZ32iXRkxnz2WvLJcp2sfO49zLWg2uK64aE6j4uS Uab9O+XKBraGCvGCpdlUTWizeoyV3Q+fOpx9nk6QT++8J+B/+lpMIlpjw0BfmziOrENn 0rpbM1ykPQ2aJn+noto6fkK27Di8g60gGn6BZVpuWky6SbPfGe6kzj1fZpUv8NUUTP1n 3RmcbTBBI6ACplzvN2MsZTlJ8ug0pZh9u3PjX35NnRNlQ+LsZbj4ldv1rQGpW/c2CKNa crxg== 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=jEaLkVQjOG/MzaKu1jImJotejI+i4aTBCvDyZleuTVQ=; b=IbLown7ZPABp3IL2GyoVv53P+KodTcDHVlNtWiXxGEvFCBVv99t1senyXrpFPxPzVn lqZcW1KfFmMfNY28oiGLzn8rf3Snu2ZRX/H05AcxMJuhM2LFQvf/wQRqqHzV3yrD99wj xrgov0aFoyJMWFYhOJgTP59HVgL9Ux7BmvPSzvfqy65L0BKehWNeHTMVSeLmvPZjGkLp VLgP354RRdEyn1Wa7ztRoub0dXbTyVrP7mwqCp3q6ic28ZKyHzYYdGLJciUE1T26aQri rFwelvHwF2BPP/5kUmPpQT90BWtCQ8M2rTAxiPbyjV79Om8GafY4W0d4wOuaOE0petXc bAuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RHsyq4ur; 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 a3si20873786edn.541.2020.12.28.08.33.34; Mon, 28 Dec 2020 08:33:57 -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=RHsyq4ur; 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 S2441885AbgL1QcA (ORCPT + 99 others); Mon, 28 Dec 2020 11:32:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:60478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730478AbgL1NEh (ORCPT ); Mon, 28 Dec 2020 08:04:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 40845206ED; Mon, 28 Dec 2020 13:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160661; bh=KAdRFZxSPzTbzgYK5MTMyvP0raa//39Om0pDEf/P3Tc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RHsyq4urOBtWXeJ4uD2Ar/8/w1lVUNVJw5BjkmoqLF05msLFcOndHtNnZdsZixVFw W97MUhAv+yTtzxUp8R1+cdJ0mkfQE6zSZZlGwPUC5Ay4agNLRVAqx94XTV4dngP3dK FWy+uPQ3I8pyxkjdCKn1o0V6DEdA1caqYmYFebLw= 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.9 128/175] cfg80211: initialize rekey_data Date: Mon, 28 Dec 2020 13:49:41 +0100 Message-Id: <20201228124859.457006011@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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 5bd89f536720d..ab8bca39afa3f 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -10428,7 +10428,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