Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp468071yba; Wed, 15 May 2019 04:39:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxH3F+zJg6Db88pB/gLCVySWZWyLSiHvdB0PP8Z+XKb9PCH2H5C/HbS5j0x1Z+X2+MLpXdK X-Received: by 2002:a65:6205:: with SMTP id d5mr43977257pgv.61.1557920343753; Wed, 15 May 2019 04:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920343; cv=none; d=google.com; s=arc-20160816; b=iAVd5l3H2rhhy42+nwcwtatX3qeCUn0UzLIGT7pyC3lm69mkVOn8Y6AnPIl/Y+dxp3 EcXL9B46KcSw3UKkHge0Zj6lzMHYU6LEgQDyZHW53YOkx7V14srAkmI6M0R4IE55P9JF pcWeuhzVM+KElOWdhay8xcXSK3Pe0mp5MKCUAPVb7jL+d3T87pXiiQIXolB/nmfxTJLi 7OCq0ORJhuHFBr1G2Edl2CqmqneIrN8b3BVLHZlD9nF2bggLLaC8XHWD83FPUR5ciuDi NIvB2NXOpCtMmWV0GNwzBLjYTZEx4Ia+Pz3M8MEBt7SQy8c//7uwKrPvjWOSw6ZDZfA0 /88Q== 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=dOSBQrUBlcjfpZ+VD4MLsqHNaeRnr4os3E/Bi3KMuxE=; b=QdB5q4HV0luxyzZMEuh+tUb8eYCshSoKb8FfIqu4OMyuuzLC8mQoxPbK2Cuq30k5vm zURnD8EZkDmiftNssrJEley9O2/eT4OuH1JXNkL1mjULU7YSLW0t2/WIwBEaqxQDPxM/ v2kd6OewjqX7uGBQUx2MD12zxO2ffCzp+jLVSDcSvv0s10cDmNqxHsmRpuNvkdZuvxxl F7/Va1jMpCM4TmB7jy8LNHRpsm358FLIBJwC5bOh02RnpVi1+/OLeNLGQsXjRZe5uPTQ OUDbfXh+FECW/J5TgzcI++6+NOQctFItCBZux2+mZjG63dItf74lNToKfxKCReuB2XVL dE0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sMBFNGXx; 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 k62si1658809pgd.502.2019.05.15.04.38.48; Wed, 15 May 2019 04:39:03 -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=sMBFNGXx; 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 S1732084AbfEOLg6 (ORCPT + 99 others); Wed, 15 May 2019 07:36:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:44096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732992AbfEOLcO (ORCPT ); Wed, 15 May 2019 07:32:14 -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 A7DC120843; Wed, 15 May 2019 11:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919934; bh=x2IW5V1R7abNeKNENdkQGPFxlDV0i+9VcjNCq4UwCTE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sMBFNGXxzqvxBVDpdzcg+Oll8y9b2y3WUgC4IeXRpzEXAI1XDOe6oBSsix921lBqy 1ffwLp4YPBlDnvIvpwYlrnPqMjBmQ6vfP9h+b/zHLhBIB0nWxzhUobs8bvMCntlaCn ezy0DPXV6zogmpeg5KBZ6vehLLN2Y8gPGeHmvkCs= 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.1 12/46] rtlwifi: rtl8723ae: Fix missing break in switch statement Date: Wed, 15 May 2019 12:56:36 +0200 Message-Id: <20190515090622.164708788@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090616.670410738@linuxfoundation.org> References: <20190515090616.670410738@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 @@ -1675,6 +1675,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;