Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp738932ybc; Sat, 16 Nov 2019 07:51:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwK2gyldCM9zZwRZmiUAnUNbCPc2+QDNqxvAhZ3MctG+84KXWFCydJJzrhpla7R/czho77e X-Received: by 2002:a17:906:80c:: with SMTP id e12mr10862588ejd.59.1573919507607; Sat, 16 Nov 2019 07:51:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919507; cv=none; d=google.com; s=arc-20160816; b=VCaUVEGRaIkTgxFrbkyacmGE7Ae4qNW5FlIKI2jjw+wWeKc9D8QrLWazDO5RusN8N8 nz4CTeybOzecUae072Ctvl/8QbxCurIpsftrJXmcKyPdrUk/tExFkPbcc1jx5zAimtKl u09Xik9v5ch4M/T5nVot9Yqz4A0/umsLnL0uLd5WR4obtUNAuPj3bPRIy5X5N0VfwVqs NWEHxcyvTcybF975jFcCX6We38qap3VPODXzRN6yT5nEmtsbFgTXyh54fJBvcPWowfLl vJdvYlciHBwRkJSb+TzZ4a1KAgWSpuJcsg7B9YSSLsp9JIUi0L4N7y52tqBckmnFDTQf wYhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=igfDDcayBMQ+f0pjbyhUIbsuq/P9kuKvrGnQZXMIHzc=; b=NLe9WiEvD80Hv4KuAeOFr8FTzISwer8t02UJqfwg9Vam2Zm8Wa7decRINcFjsrORUb U71RyuUimZzjWN0VVxaf5jJTvq2pXi6jZCTpyUgqOx0TsexU8kSYXRlFuXfZpqmeD9CF eCfoM8lJODCwWrHitl22D1arS2R9PBviZAh/DMFhGpqFEJ3qok6wz3gl2vUP1UB4pKph QKyNvDX7NKiaO5XpsoPFTfjbyV2xryYVgXZ7L+53mHCGHpXYOn9sRrltdDX+19iSYW76 ruV9NKj8rIpsz/9h7gFTEBoFnR9QkxP/l+g7z8pOMzIOTYPzfoTAcHXLgzaKlx702grY 6Juw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qHUlFTwl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si7905846ejx.169.2019.11.16.07.51.23; Sat, 16 Nov 2019 07:51:47 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=qHUlFTwl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729631AbfKPPrH (ORCPT + 99 others); Sat, 16 Nov 2019 10:47:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:52962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728775AbfKPPqe (ORCPT ); Sat, 16 Nov 2019 10:46:34 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AE4F620869; Sat, 16 Nov 2019 15:46:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919194; bh=9BUY48yvrLMhHqxYllnn6XxLMqRsZnTGF692jic1HTQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qHUlFTwlZgLgRKWSRG79p2IUGIqXqsb2biBmcEnNNsg1Bdhu5fPi4cbWWtA8Og6gP 7223qYvu0qrW5K7dLYzS4DEZInILhVlqHdf66lAxwFAEZL1HDgL/BzNfEm2MHPJhg+ w7YgGzjMLNQIoUmmbJjR1Ux24G+vUOpcVy6E2qH4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Gustavo A. R. Silva" , Kalle Valo , Sasha Levin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 202/237] rtl8xxxu: Fix missing break in switch Date: Sat, 16 Nov 2019 10:40:37 -0500 Message-Id: <20191116154113.7417-202-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Gustavo A. R. Silva" [ Upstream commit 307b00c5e695857ca92fc6a4b8ab6c48f988a1b1 ] Add missing break statement in order to prevent the code from falling through to the default case. Fixes: 26f1fad29ad9 ("New driver: rtl8xxxu (mac80211)") Signed-off-by: Gustavo A. R. Silva Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 505ab1b055ff4..2b4fcdf4ec5bb 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5691,6 +5691,7 @@ static int rtl8xxxu_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, break; case WLAN_CIPHER_SUITE_TKIP: key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; + break; default: return -EOPNOTSUPP; } -- 2.20.1