Received: by 10.213.65.68 with SMTP id h4csp720111imn; Fri, 6 Apr 2018 07:49:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx493rgbrVNkpWlwrwXIpBeGYMNOVVe/3AhxbQYQ3ABkQTNMQxLaNkkxbKmdlNiPbY6miGpQc X-Received: by 10.101.81.204 with SMTP id i12mr14324812pgq.206.1523026190335; Fri, 06 Apr 2018 07:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523026190; cv=none; d=google.com; s=arc-20160816; b=Fb+2ltiLnx443Ps2SLgm/aScdkEv5TXaA4flIJJzrDOEkfNhjpCBYZblCh/blWbj4l PiYZfFO1jYocAPqdQWcN7IqiuNrDLn+y4W3kC11CWC6Q0ufOMF+CNXDFXNxyCvZEjOPU oA+L5uVmErW0b8anVgdzADIJTcvEafT7Ec5AcOWXhCwXnuUCkw8hfzCwR4Q2O4SCnFTH lFJ0tW/jpYQvm52DdzHDj2wv3MUsd/B8Vtbx7iXM4YWHrJT+b72sLeCuLYdMe8khtNlc OTy4jUI/Mt+CLSTCef2bJJ4zGYvMAZHrRFQkCfvBL3UPy+wi74x119lS+KllPyPr2opX T/0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jAIP97rTG+gRfu70qqnzJbIVptWdr0Mq88T+CTiI218=; b=UeDidpi4R9S3XVU6HtBGadYtH2+heGhBEyep+Bvi/x9rQb9PbA9vIklcGsHeUaDEA5 8U6YhPQXq33NOjEO6RzeZIBzB79eu8DvRplPs6kcwrsSqPuNBuYI16+vAf2M7/YN3GSM 9vhY9arPHK/fbbUoF0bNwag9d9je7F1KzIBAQrUh7r2fdFPm49RegVbzIK9PXvmxpsG2 bS2q1dzZHZT8CXTYLQJU3scYNuDcBdcrnVqiBSXVZDynU9sgMpU8LeygL9mQBOFX4naJ iJECp3n6Xcnyqx41Z+sAmz0WkULQbC+sHEPh3H3Oqcji5Uj/vjGRlyvzgbsfiHzNrvZv 4Mnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26si6141907pfn.269.2018.04.06.07.49.36; Fri, 06 Apr 2018 07:49:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755620AbeDFNd3 (ORCPT + 99 others); Fri, 6 Apr 2018 09:33:29 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57912 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755573AbeDFNd2 (ORCPT ); Fri, 6 Apr 2018 09:33:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 87B7BCE8; Fri, 6 Apr 2018 13:33:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Johannes Berg , Nathan Chancellor Subject: [PATCH 4.9 025/102] nl80211: Fix enum type of variable in nl80211_put_sta_rate() Date: Fri, 6 Apr 2018 15:23:06 +0200 Message-Id: <20180406084335.225305155@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthias Kaehlcke commit bbf67e450a5dc2a595e1e7a67b4869f1a7f5a338 upstream. rate_flg is of type 'enum nl80211_attrs', however it is assigned with 'enum nl80211_rate_info' values. Change the type of rate_flg accordingly. Signed-off-by: Matthias Kaehlcke Signed-off-by: Johannes Berg Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- net/wireless/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4081,7 +4081,7 @@ static bool nl80211_put_sta_rate(struct struct nlattr *rate; u32 bitrate; u16 bitrate_compat; - enum nl80211_attrs rate_flg; + enum nl80211_rate_info rate_flg; rate = nla_nest_start(msg, attr); if (!rate)