Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp463119yba; Wed, 15 May 2019 04:33:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqnmWRZ+qUeUHPjUuf6ivtkUL6Apde2rjCbEgpcg+NY5sRtCYo2JlA+dJEzGIYZpdC3BXR X-Received: by 2002:a63:6103:: with SMTP id v3mr44061181pgb.48.1557920002471; Wed, 15 May 2019 04:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920002; cv=none; d=google.com; s=arc-20160816; b=0NeQwa8k9wvwtabJZFsruc6bemAky8dc7FkzG4xiFmswGFpBXJFFkq6Wy7pTxdD0eA EPdudEIxdTKa5Y9xiXBzVn1ZS/aDUJvX5sDXCG73DP7Vf/H8Pju+hTnR9V5oc4pfKgmM 3fZcH8h36Bos3MXXe/jir1T5zaahAXD2Lpz2IzS95dCtuJuNM3pxZfrHF5LqXocrFpMV nfu6k+RFvc/Hy3nHmfF7EK5sJbydizS1gUIei7bqgt4mgOX43fpWDxhA9pj3UprHy3rK 88/iegnCaXmuUzDcqRFmrEeHSX/gcBTG4wpFHMR8ufCS+6nq6YmfJ2YJLX7jp4n8Un8v XEYQ== 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=4zfgO9gzpoxw6sqcrrmdklzmhhtA78/opU4suFBKfvc=; b=khFNFe+6/2CxOxRGx3kx/HriHGQU/ImrhvH0Syxe7NnjckIy8Qc3r+HZa6shI/DpM0 jF8cmD2T6SwS9DafDWtYsy2/prSyYKMMxIOtEvOmb9T/XnRFqh5+Wm0ceG24nVc1w2u1 YhjjMMoe2aP8zvYTs3Z1lefu98FyI65QG5HHQiAijQ+9x50NAgO/Inh5UplqJa+z9zzm jcwxR1RiBtuF4T9w/19lDbbNbxoeLYv2cLJ+cctqTJBRMMknbhTpGghivTtFybx1X+YO uTvDljOkTe7UpkMSi7HT5ibxMg3E/yn7P3G+mSjXx+/idyToivfdYQJl46ydwDDnVRnk BzOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C+GnVcqu; 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 m7si1490066plt.392.2019.05.15.04.33.07; Wed, 15 May 2019 04:33:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=C+GnVcqu; 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 S1732381AbfEOLaR (ORCPT + 99 others); Wed, 15 May 2019 07:30:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:41690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726584AbfEOLaN (ORCPT ); Wed, 15 May 2019 07:30:13 -0400 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 468C22084A; Wed, 15 May 2019 11:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919812; bh=Z4GpA9J3EViTNKyAvolCiSzizfWdwFOlxZxX4c3O2tI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C+GnVcqusfSc856TGPe/cx48VQO0Ra4z/8cjFMarg7XQebMm1nBAn74XN/ieBbE0c Xvsfqw96zwtGRHU31FpyK0DZmA73cbNY4MkTt380gj5xt1w965lsjzC8muTYfYBqNP DEE+Yx1pG5xTvH59YHMMdzvutOJOI4Bz9CT27GYo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Gustavo A. R. Silva" , Kalle Valo Subject: [PATCH 5.0 103/137] rtlwifi: rtl8723ae: Fix missing break in switch statement Date: Wed, 15 May 2019 12:56:24 +0200 Message-Id: <20190515090701.007123281@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@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 commit 84242b82d81c54e009a2aaa74d3d9eff70babf56 upstream. Add missing break statement in order to prevent the code from falling through to case 0x1025, and erroneously setting rtlhal->oem_id to RT_CID_819X_ACER when rtlefuse->eeprom_svid is equal to 0x10EC and none of the cases in switch (rtlefuse->eeprom_smid) match. This bug was found thanks to the ongoing efforts to enable -Wimplicit-fallthrough. Fixes: 238ad2ddf34b ("rtlwifi: rtl8723ae: Clean up the hardware info routine") Cc: stable@vger.kernel.org Signed-off-by: Gustavo A. R. Silva Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c @@ -1697,6 +1697,7 @@ static void _rtl8723e_read_adapter_info( rtlhal->oem_id = RT_CID_819X_LENOVO; break; } + break; case 0x1025: rtlhal->oem_id = RT_CID_819X_ACER; break;