Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1806521imm; Mon, 3 Sep 2018 09:56:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZbZz9ED4xqT8846wwGGFPS5baUmlodNAfJ+VCoUNTq6DJGwHUXhgzoUbS7N4yiIlIzdIdS X-Received: by 2002:a17:902:e109:: with SMTP id cc9-v6mr29209842plb.96.1535993792050; Mon, 03 Sep 2018 09:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535993792; cv=none; d=google.com; s=arc-20160816; b=WlrIZEIn9HvikSrjuh0PoAr2ABXL9yu3EGaHjW/tfJw8616vrFdRyZvE+VwOYnwRWQ WRxVgpogo8wFiE9W65ng7dr6koqw83dmGDGfQR9XeHGhl7Lj4FKGRksO0RH5fqfPZF0y PMmTwURoE+OPPgzqdYMzkEp6RD6c5tQ6TDtnCgHZergOV+eaU14eo10hrWf17G4h6UWd uqzk4Ab9B3VtxRjHRl5T3tIeHX2WtiGTAaOTytwH4af0qAEtrxmrJdO2zpir/lxX5bJY kqHgOJZj2+JdrwNSwBmgJf7QMQmZjjXcqeDqppvlFgTAr2QntBCsBAkOnE3XVgIO2vq/ beDg== 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=hOvdNcQesykQ0NXL1I5EVO5H4gENHrlnGkc/8dL6Qk0=; b=tsSQsQTjs3LwG92gDO+GFvWpH1BVw0JOZohkYUZDC4/NmNcT5cYg0LHQdFaHpj2St/ 0M2PlKXDy+sdEL9ycr8PENktMXEH3/5Cq33OA6vVYPEkupg1gW3tqwX5vZjm6Tp4+YjV sH25wHtCxAFV35FDVud/OedL8ub2MC3pZVAUgVs6rHskp8yC5Ju45p1ucDuzQMTOmg0O 94bbb/Gbj7lOWJxhyiUnC6+Z3W5KbiLaoO8UnMpA96wlZe9AgiwMprkC8qu3IkFvRKBW DZEpDYZzbbYT3VF4LqTriab+6IKogedyJkSprgjEIu+bsRQye7l2whpIOLQ+g1I5GKkK mzEw== 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 k18-v6si17434785pff.91.2018.09.03.09.56.17; Mon, 03 Sep 2018 09:56:32 -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 S1728933AbeICVO6 (ORCPT + 99 others); Mon, 3 Sep 2018 17:14:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38244 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728398AbeICVO5 (ORCPT ); Mon, 3 Sep 2018 17:14:57 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E3516CF8; Mon, 3 Sep 2018 16:53:59 +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.4 07/80] nl80211: Add a missing break in parse_station_flags Date: Mon, 3 Sep 2018 18:48:45 +0200 Message-Id: <20180903164934.459274960@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903164934.171677301@linuxfoundation.org> References: <20180903164934.171677301@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.4-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 @@ -3578,6 +3578,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; }