Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5995068ybc; Wed, 27 Nov 2019 13:05:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyHMdMJZUR9Hup+3ku5tJbX52zTR5XXkuTN3IkE5jkZeKC8HnigLZ6XNQ4BMI9GDTNLBGkF X-Received: by 2002:a50:fc96:: with SMTP id f22mr34615506edq.119.1574888742215; Wed, 27 Nov 2019 13:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888742; cv=none; d=google.com; s=arc-20160816; b=L0uD8WyQ+WVHZvcwGX7TBL/vueHOESjaSitXdC1TWUhdRqsCFn6WM8bchQkdqf+9f6 /1Ph/luimamtLGvRFy91lmTnNL53jUjff/4T9pJk03hEigBg255Uo8UWTIIcwlprNVzx gNmelT1gaATL/42NVzVrAd7sbYE7WrzTBf/ddvuS51DpRfDtRUdMKQ/2ve+bI57RJjE6 Gf8aEj2I2odKEACS4/3F+dWIGQyPso4FJ0Wl0MLpXRqGFzMEyETkaWkm0mtfFTF0zgsn qXkVamqj4AwNt7j8J8aZmfqYH9LaZcn7fR7fpo06izUBKRHBFdlGMa3ta/pdZ9ync6LW RBog== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Mr5I053dD403/OKf2msG/JyP02t3Fl75ew9gFo3/1hU=; b=DO+SJcE919eVQ6w2RChNNK1kd96plXEalF9Za0I0hBCd+Q4mn61sK5V/ZvI9XxXuEX hGUOS/Mu6QCNifx32fMZ5ad3GGSdxgFxjiZ+K+OaB3PdZG/TplG2hFMQJf3MQIVGtLE5 TNz9agfL0IA7hk3AZWLTnYCjnDbFlPwqS2qPBTeeGtzyEzkXu9/kN6A4vzrBBTxxaGpz cQQ5BMl8h37Bohfmd6b+LyTWm1wGQnaZvtut9fhA5qhm2TJbwuO5dytxe7L5KHRNzqzT ZpZsrnXjaapU5AOHc4EVPPkcHRLR/agxkG6hS7mnEXmU4bD5UzvQqE8xK/MGmCYJ2qa1 aRtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1/BOcSYZ"; 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 u9si10299855ejk.388.2019.11.27.13.05.19; Wed, 27 Nov 2019 13:05:42 -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="1/BOcSYZ"; 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 S1732139AbfK0VEW (ORCPT + 99 others); Wed, 27 Nov 2019 16:04:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:57812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732135AbfK0VEU (ORCPT ); Wed, 27 Nov 2019 16:04:20 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 61C17215F1; Wed, 27 Nov 2019 21:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888659; bh=tbrUviMnNBQSpfe313dBOETUABwOxt7qbL94XpnV9Dc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1/BOcSYZ9+gyxhH4gjbtE4+QHNHeeC+IHGS+Cnb0ui7MQRRQfwnj+SX75Tt2N8LGy 62XtEOqhiQfKxlz+OjqDC3diDGv4Kfb0YxLB6RDMgAbHwymqP79qWwGAzi+jGVFglf Sy9YCfQZ2CnMwW0dxwKwvPH6luQ7RW10Rff0tZsY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Gustavo A. R. Silva" , Kalle Valo , Sasha Levin Subject: [PATCH 4.19 219/306] rtl8xxxu: Fix missing break in switch Date: Wed, 27 Nov 2019 21:31:09 +0100 Message-Id: <20191127203131.058848545@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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