Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp713024imj; Wed, 13 Feb 2019 16:19:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IbmWM/rPhqDkXhVWf9Wem6hNs/giHtj7vV0xoASR0aIf6zNheAlVPckGj0gAo59j4H4+iFS X-Received: by 2002:a65:62ca:: with SMTP id m10mr930153pgv.6.1550103544375; Wed, 13 Feb 2019 16:19:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550103544; cv=none; d=google.com; s=arc-20160816; b=cMAY+YpN4/8mDRUBUqJEGaeYS3fDrHUpMRtqJUuDdk1ZQGzS5W/OlCvcQ4ZgBh87l8 w89TD/cLWFB5zUFyfw6FGy5RZBQlsBytsiXckdv5H+UOEIOEeERJio/XL4HVr98D/LXv tIuLtKoxjJ7QGIK+eLsmyvcgvx7xdBdA4CNvH09IvYlgIAmlFP7stLwEpYmsfs73BUmp ezDs1DQxkf0QM+Vw8NXAJrz+j8pTZ/WmuL3nD6XjClEUsBXEEyuRmVMvvzhWQMOGoO+9 YHuSRETly93Y3ctWr7udx/kv9V/+EmOW0hG5nIuUaSJbeh5HFeRQYne9Kik4f1H42Vwn dNTQ== 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=vlmZGSPEaJ8vB67A9oYKCfC+7PoYh/E04RmxJrJ9w6A=; b=yP5VNhB+5eIWOdtELAuV0wmiWLfxysMgu1AbH1tsTWmo0tpvujmecOGXFclvmZPHwS eC4zUQxjuOHw+lY95jF27l9RoyrDrL4SJ7d47EBIHUrfD+BGHoSNy0e/v1rn8hqEtuM7 RV4qndt+INOyu2j9t9IDgsWi7sloyVnSZy9nVOENvaQSkJy0MUkf7s/W2sV8gUDLeNpX ewLAoly13llu1ymOVZSV3yBZUY3PTBzthfvYp9s0OuNnT7apXiDjzLOsnNT03b2skBWd KYaDxGmC5+U7s7mP0+CSc6xMSH/tVhg3nVMlajdKQ663iDAiqGnNJvC0cRU7Rg2zqU3t 6waQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="eT4c6tV/"; 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 z4si693181pgv.534.2019.02.13.16.18.48; Wed, 13 Feb 2019 16:19:04 -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="eT4c6tV/"; 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 S2406441AbfBMSqX (ORCPT + 99 others); Wed, 13 Feb 2019 13:46:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:44920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406427AbfBMSqU (ORCPT ); Wed, 13 Feb 2019 13:46:20 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 3FEAA20835; Wed, 13 Feb 2019 18:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550083579; bh=w5dyh7n/2LdziC4L5Svno/nejRTHTCAoPYqkvLX/80g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eT4c6tV/Jk5Z1HwZ9+1g3bEvd1JGH548tZN2lkY5Wn/ojkZh/mtIaD37R+jwoPAK3 wLvp8JVdnlTA7jMtaNaD39oj41vu9PdJ8b23KiSVmBlHfXY6Y8ii/FE0dib0dkySXU 0I8V3EUa4jt3SfuDJ2Tg9hid0YuxIicoEi04CmAo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Gustavo A. R. Silva" , Alex Deucher Subject: [PATCH 4.20 39/50] drm/amd/powerplay: Fix missing break in switch Date: Wed, 13 Feb 2019 19:38:44 +0100 Message-Id: <20190213183658.776366374@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213183655.747168774@linuxfoundation.org> References: <20190213183655.747168774@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gustavo A. R. Silva commit 2f10d823739680d2477ce34437e8a08a53117f40 upstream. Add missing break statement in order to prevent the code from falling through to the default case. The resoning for this is that pclk_vol_table is an automatic variable. So, it makes no sense to update it just before falling through to the default case and return -EINVAL. This bug was found thanks to the ongoing efforts to enabling -Wimplicit-fallthrough. Fixes: cd70f3d6e3fa ("drm/amd/powerplay: PP/DAL interface changes for dynamic clock switch") Cc: stable@vger.kernel.org Signed-off-by: Gustavo A. R. Silva Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c @@ -1005,6 +1005,7 @@ static int smu10_get_clock_by_type_with_ break; case amd_pp_dpp_clock: pclk_vol_table = pinfo->vdd_dep_on_dppclk; + break; default: return -EINVAL; }