Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1840540imm; Mon, 3 Sep 2018 10:48:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZPRoa4Z6KKyZLsnyaMfVul+0fpkTRPq+dAwrCpvFqsx5bUuGR8ZCQy4KoArs2RSBno0lgc X-Received: by 2002:a62:586:: with SMTP id 128-v6mr30679740pff.80.1535996934901; Mon, 03 Sep 2018 10:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535996934; cv=none; d=google.com; s=arc-20160816; b=WY4E473MViNuC4SHPoLd5rVgbhgIXtDqd7WKHaEsLhBnX6WC9e6F3bE5o5j47KkoKA bb5CCEIGfrMAAg1331Ikef1oQ5IQH5/lqBPwCo2Zq2ElxrX9odWe9fZ47OHFyKF1OQHy X8MTTBBiIFHD9FJYgpCSrwwzJC332qs7v7MzgFNSKWQY2MJDrEYFZmbK2ssYMvRD71SA FQ9911JgQj+iZO6a3Cwg/Tu9dqrx2upT4v4ltyYOyMyCp69t22bpB+xGR9o5YRH9C9KB 16ShzYVxCRjRc4Y2Xf91vX1Y+5On1XMBtEEiIph8uVRY84huyOMCXY8BI2FGLlVbKKxV 210A== 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=zVEiia/9AGSJQRguZiuTpfI0e8GN4Kszj8nJhH7LoL4=; b=N1VOFIOQszeaQZ7EgMyV8zdXhhV4uMTXWmeqfEmziUcST2AZEbzdBwYLpdNANrFrjT RIk+35rx9ju0nX5RED6gdCTm6D4Xusw5wAzYrajY9PG88eaZw8ebbh7M54FAMyqUSxsV uHm2WhatZEU62al2NQfe4+vM74axZPMOw7qdXRgKgktZpsNoxUnHLTYTPQcmgbHRFB1i Kc1F4bOBiwMsjV0un57RPrcpSKLTQQucC0loE18asT4ZsQnK+n4CNq/1JwNosDrYc+3s QZtF7gc920q2jQjrbbgB2+Hq0HVVT+pd2sTniRd2aYFm1UUoWPlPfjNmobdVrxg5/Gof vY4Q== 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 h65-v6si21262360pfb.70.2018.09.03.10.48.40; Mon, 03 Sep 2018 10:48:54 -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 S1729854AbeICVhU (ORCPT + 99 others); Mon, 3 Sep 2018 17:37:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42528 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727942AbeICVhT (ORCPT ); Mon, 3 Sep 2018 17:37:19 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 06DD2D06; Mon, 3 Sep 2018 17:16:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bernd Edlinger , Johannes Berg , Sasha Levin Subject: [PATCH 4.14 008/165] nl80211: Add a missing break in parse_station_flags Date: Mon, 3 Sep 2018 18:54:54 +0200 Message-Id: <20180903165655.426935726@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bernd Edlinger [ Upstream commit 5cf3006cc81d9aa09a10aa781fc065546b12919d ] I was looking at usually suppressed gcc warnings, [-Wimplicit-fallthrough=] in this case: The code definitely looks like a break is missing here. However I am not able to test the NL80211_IFTYPE_MESH_POINT, nor do I actually know what might be :) So please use this patch with caution and only if you are able to do some testing. Signed-off-by: Bernd Edlinger [johannes: looks obvious enough to apply as is, interesting though that it never seems to have been a problem] Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/wireless/nl80211.c | 1 + 1 file changed, 1 insertion(+) --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4186,6 +4186,7 @@ static int parse_station_flags(struct ge params->sta_flags_mask = BIT(NL80211_STA_FLAG_AUTHENTICATED) | BIT(NL80211_STA_FLAG_MFP) | BIT(NL80211_STA_FLAG_AUTHORIZED); + break; default: return -EINVAL; }